Removed cacheing option

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10973 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2001-07-11 17:27:23 +00:00
parent 6c02c32922
commit 2774804745
3 changed files with 6 additions and 7 deletions

View File

@@ -1704,7 +1704,7 @@ bool wxDC::DoBlit(wxCoord xdest, wxCoord ydest,
HBITMAP buffer_bmap ;
#if wxUSE_DC_CACHEING
if (CacheEnabled())
if (TRUE)
{
// create a temp buffer bitmap and DCs to access it and the mask
wxDCCacheEntry* dcCacheEntry1 = FindDCInCache(NULL, source->GetHDC());
@@ -1776,14 +1776,13 @@ bool wxDC::DoBlit(wxCoord xdest, wxCoord ydest,
::SelectObject(dc_mask, 0);
::SelectObject(dc_buffer, 0);
#if wxUSE_DC_CACHEING
if (!CacheEnabled())
#endif
#if !wxUSE_DC_CACHEING
{
::DeleteDC(dc_mask);
::DeleteDC(dc_buffer);
::DeleteObject(buffer_bmap);
}
#endif
}
}
else // no mask, just BitBlt() it