]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/dcmemory.cpp
reverted last commit, still broken for VC6
[wxWidgets.git] / src / gtk1 / dcmemory.cpp
index 7a923753f7b8e4a1b15c25bd3c7ca556eb43b10c..a3ac365287797b80972362e05d9bf963a554e360 100644 (file)
@@ -4,7 +4,7 @@
 // Author:      Robert Roebling
 // RCS-ID:      $Id$
 // Copyright:   (c) 1998 Robert Roebling
-// Licence:     wxWidgets licence
+// Licence:     wxWindows licence
 /////////////////////////////////////////////////////////////////////////////
 
 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
@@ -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();