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
This commit is contained in:
Stefan Csomor
2006-10-12 05:15:47 +00:00
parent 4f88b483b5
commit 514fd350e8

View 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 ;