// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "dcmemory.h"
#endif
+// For compilers that support precompilation, includes "wx.h".
+#include "wx/wxprec.h"
+
#include "wx/dcmemory.h"
#include <gdk/gdk.h>
m_window = m_selected.GetBitmap();
}
+#ifdef __WXGTK20__
+ m_selected.PurgeOtherRepresentations(wxBitmap::Pixmap);
+#endif
+
m_isMemDC = TRUE;
SetUpDC();