]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/dcmemory.cpp
mention that this file can be used under wx licence too
[wxWidgets.git] / src / gtk / dcmemory.cpp
index 0ec10532b7d8ce554a856cda72862eee8115ed91..a3ac365287797b80972362e05d9bf963a554e360 100644 (file)
@@ -71,6 +71,10 @@ void wxMemoryDC::SelectObject( const wxBitmap& bitmap )
             m_window = m_selected.GetBitmap();
         }
 
+#ifdef __WXGTK20__
+        m_selected.PurgeOtherRepresentations(wxBitmap::Pixmap);
+#endif
+
         m_isMemDC = TRUE;
 
         SetUpDC();