]> git.saurik.com Git - wxWidgets.git/commitdiff
adjust so that mono bitmaps don't get an alpha channel
authorStefan Csomor <csomor@advancedconcepts.ch>
Thu, 12 Oct 2006 05:15:47 +0000 (05:15 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Thu, 12 Oct 2006 05:15:47 +0000 (05:15 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41964 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/carbon/dcmemory.cpp

index 79ef4ee3ccf5b4a27b1eb9e3d87d2bec5d3249ab..8985e4edc435f3c3054fccd21878b17d89bda9e9 100644 (file)
@@ -78,7 +78,8 @@ void wxMemoryDC::SelectObject( const wxBitmap& bitmap )
     if (m_selected.Ok())
     {
 #if wxMAC_USE_CORE_GRAPHICS
-        m_selected.UseAlpha() ;
+        if ( m_selected.GetDepth() != 1 )
+            m_selected.UseAlpha() ;
         void * data = m_selected.BeginRawAccess() ;
 
         int bitsPerComp = 8 ;