]> git.saurik.com Git - wxWidgets.git/commitdiff
Reordered ClearCache calls as per Roger Chickering's suggestion.
authorJulian Smart <julian@anthemion.co.uk>
Tue, 20 Aug 2002 08:13:22 +0000 (08:13 +0000)
committerJulian Smart <julian@anthemion.co.uk>
Tue, 20 Aug 2002 08:13:22 +0000 (08:13 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16608 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/msw/dc.cpp

index e533015783809b3b5636c24a0e0ebd119e52e3c9..6b33f33f7467ab78738edc3357e1e66e56846071 100644 (file)
@@ -2108,12 +2108,12 @@ void wxDC::AddToDCCache(wxDCCacheEntry* entry)
 
 void wxDC::ClearCache()
 {
-    sm_bitmapCache.DeleteContents(TRUE);
-    sm_bitmapCache.Clear();
-    sm_bitmapCache.DeleteContents(FALSE);
     sm_dcCache.DeleteContents(TRUE);
     sm_dcCache.Clear();
     sm_dcCache.DeleteContents(FALSE);
+    sm_bitmapCache.DeleteContents(TRUE);
+    sm_bitmapCache.Clear();
+    sm_bitmapCache.DeleteContents(FALSE);
 }
 
 // Clean up cache at app exit