#endif
#include "wx/dcmemory.h"
+#include "wx/mac/private.h"
//-----------------------------------------------------------------------------
// wxMemoryDC
IMPLEMENT_DYNAMIC_CLASS(wxMemoryDC,wxPaintDC)
wxMemoryDC::wxMemoryDC(void)
+ : m_selected()
{
m_ok = TRUE;
SetBackground(*wxWHITE_BRUSH);
};
wxMemoryDC::wxMemoryDC( wxDC *WXUNUSED(dc) )
+ : m_selected()
{
- m_ok = TRUE;
+ m_ok = TRUE;
SetBackground(*wxWHITE_BRUSH);
SetBrush(*wxWHITE_BRUSH);
SetPen(*wxBLACK_PEN);
{
if ( m_selected.Ok() )
{
- UnlockPixels( GetGWorldPixMap(m_selected.GetHBITMAP()) );
+ UnlockPixels( GetGWorldPixMap(MAC_WXHBITMAP(m_selected.GetHBITMAP())) );
}
};
{
if ( m_selected.Ok() )
{
- UnlockPixels( GetGWorldPixMap(m_selected.GetHBITMAP()) );
+ UnlockPixels( GetGWorldPixMap(MAC_WXHBITMAP(m_selected.GetHBITMAP())) );
}
m_selected = bitmap;
if (m_selected.Ok())
{
m_macMask = mask->GetMaskBitmap() ;
}
+ SetRectRgn( (RgnHandle) m_macBoundaryClipRgn , 0 , 0 , m_selected.GetWidth() , m_selected.GetHeight() ) ;
+ CopyRgn( (RgnHandle) m_macBoundaryClipRgn ,(RgnHandle) m_macCurrentClipRgn ) ;
m_ok = TRUE ;
}
else