From: Václav Slavík Date: Sat, 21 Aug 2004 22:48:45 +0000 (+0000) Subject: added alpha channel support to wxGTK2's wxBitmap X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7452aff578453d1f94d68c101b897aed6b529b7d added alpha channel support to wxGTK2's wxBitmap git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28851 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/gtk/dcmemory.cpp b/src/gtk/dcmemory.cpp index 0ec10532b7..a3ac365287 100644 --- a/src/gtk/dcmemory.cpp +++ b/src/gtk/dcmemory.cpp @@ -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(); diff --git a/src/gtk1/dcmemory.cpp b/src/gtk1/dcmemory.cpp index 0ec10532b7..a3ac365287 100644 --- a/src/gtk1/dcmemory.cpp +++ b/src/gtk1/dcmemory.cpp @@ -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();