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:
@@ -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
|
||||||
|
Reference in New Issue
Block a user