From 514fd350e8b074ad13960adc1b51e4a6058c539d Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Thu, 12 Oct 2006 05:15:47 +0000 Subject: [PATCH] adjust so that mono bitmaps don't get an alpha channel git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41964 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/mac/carbon/dcmemory.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mac/carbon/dcmemory.cpp b/src/mac/carbon/dcmemory.cpp index 79ef4ee3cc..8985e4edc4 100644 --- a/src/mac/carbon/dcmemory.cpp +++ b/src/mac/carbon/dcmemory.cpp @@ -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 ; -- 2.49.0