X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/204dd9a771efee884a526f8590668d3f56b77249..8a1e6413fe30df36ab9d458fd70d5634bc7f8457:/samples/drawing/drawing.cpp diff --git a/samples/drawing/drawing.cpp b/samples/drawing/drawing.cpp index 0c092f7941..c3c0b3796a 100644 --- a/samples/drawing/drawing.cpp +++ b/samples/drawing/drawing.cpp @@ -377,6 +377,7 @@ MyCanvas::MyCanvas(MyFrame *parent) m_show = Show_Default; m_smile_bmp = wxBitmap(smile_xpm); m_std_icon = wxArtProvider::GetIcon(wxART_INFORMATION); + m_clip = FALSE; } void MyCanvas::DrawTestBrushes(wxDC& dc) @@ -885,7 +886,7 @@ void MyCanvas::DrawRegionsHelper(wxDC& dc, wxCoord x, bool firstTime) dc.DestroyClippingRegion(); wxRegion region(x + 110, y + 20, 100, 270); -#ifndef __WXMOTIF__ +#if !defined(__WXMOTIF__) && !defined(__WXMAC__) if ( !firstTime ) region.Offset(10, 10); #endif