]> git.saurik.com Git - wxWidgets.git/commitdiff
added alpha channel support to wxGTK2's wxBitmap
authorVáclav Slavík <vslavik@fastmail.fm>
Sat, 21 Aug 2004 22:48:45 +0000 (22:48 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Sat, 21 Aug 2004 22:48:45 +0000 (22:48 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28851 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/gtk/dcmemory.cpp
src/gtk1/dcmemory.cpp

index 0ec10532b7d8ce554a856cda72862eee8115ed91..a3ac365287797b80972362e05d9bf963a554e360 100644 (file)
@@ -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();
index 0ec10532b7d8ce554a856cda72862eee8115ed91..a3ac365287797b80972362e05d9bf963a554e360 100644 (file)
@@ -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();