Reordered ClearCache calls as per Roger Chickering's suggestion.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@16608 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2002-08-20 08:13:22 +00:00
parent b93f4bb9da
commit 2406fd34fe

View File

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