X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8ab40c5227978dcca4e2a9a5dcc6eca3dd7c7d7c..a9e003065d7d355f1c5130c8584529bf0dbca635:/src/gtk1/dcmemory.cpp?ds=inline diff --git a/src/gtk1/dcmemory.cpp b/src/gtk1/dcmemory.cpp index 3c843eae1d..a3ac365287 100644 --- a/src/gtk1/dcmemory.cpp +++ b/src/gtk1/dcmemory.cpp @@ -7,10 +7,13 @@ // 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 @@ -68,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();