From 7452aff578453d1f94d68c101b897aed6b529b7d Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Sat, 21 Aug 2004 22:48:45 +0000 Subject: [PATCH] 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 --- src/gtk/dcmemory.cpp | 4 ++++ src/gtk1/dcmemory.cpp | 4 ++++ 2 files changed, 8 insertions(+) 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(); -- 2.45.2