]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/dcmemory.cpp
wxNativeEncoding::To/FromString now stores wxFontEncoding info as well (don't worry...
[wxWidgets.git] / src / mac / carbon / dcmemory.cpp
index 28a652368a97e41c1058b70f1469f67367563a3d..fe88bf806cfa070d3f05e15e107f8f80ede1df6d 100644 (file)
@@ -44,6 +44,11 @@ void wxMemoryDC::SelectObject( const wxBitmap& bitmap )
                if ( bmap->m_hBitmap )
                {
                        m_macPort = (GrafPtr) bmap->m_hBitmap ;
+                       wxMask * mask = bitmap.GetMask() ;
+                       if ( mask )
+                       {
+                               m_macMask = mask->GetMaskBitmap() ;
+                       }
                        MacSetupPort() ;
                        m_ok = TRUE ;
                        // SetBackground(wxBrush(*wxWHITE, wxSOLID));