]> git.saurik.com Git - wxWidgets.git/commitdiff
Removed cacheing option
authorJulian Smart <julian@anthemion.co.uk>
Wed, 11 Jul 2001 17:27:23 +0000 (17:27 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Wed, 11 Jul 2001 17:27:23 +0000 (17:27 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10973 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/dc.h
src/common/dcbase.cpp
src/msw/dc.cpp

index 8dc21ff6f0e380cecd4c97efe0dc7b10fadebd9e..eef4e7b99c5861974b7adf8c1e398cfec236a0f0 100644 (file)
@@ -491,7 +491,7 @@ public:
     // 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
@@ -699,7 +699,7 @@ protected:
     bool m_isInteractive:1;
     bool m_isBBoxValid:1;
 #if wxUSE_DC_CACHEING
-    static bool sm_cacheing;
+//    static bool sm_cacheing;
 #endif
 
     // coordinate system variables
index ae54f14f91d51276c895e8721e552f61b25608e9..958d45969b2f807b772d3b7e71636fcd75413692 100644 (file)
@@ -32,7 +32,7 @@
 
 #include <math.h>
 
-bool wxDCBase::sm_cacheing = FALSE;
+// bool wxDCBase::sm_cacheing = FALSE;
 
 // ============================================================================
 // implementation
index cae9668ac8e9e93be1e4a81d5f54ea47281da47f..a9cfabdf120850dbf0297200847df0ca5f981e7a 100644 (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