git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10973
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
// Put ClearCache in the wxDC implementation class, since it has to be
// static.
// static void ClearCache() ;
-#if wxUSE_DC_CACHEING
+#if 0 // wxUSE_DC_CACHEING
static void EnableCache(bool cacheing) { sm_cacheing = cacheing; }
static bool CacheEnabled() { return sm_cacheing ; }
#endif
bool m_isInteractive:1;
bool m_isBBoxValid:1;
#if wxUSE_DC_CACHEING
- static bool sm_cacheing;
+// static bool sm_cacheing;
#endif
// coordinate system variables
#include <math.h>
-bool wxDCBase::sm_cacheing = FALSE;
+// bool wxDCBase::sm_cacheing = FALSE;
// ============================================================================
// implementation
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());
::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