X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f88c1a172efd0391ad65621898e6a8823160c4f9..12d1116bee8820bb1850f6f3ec63aa8a81b8e53f:/samples/drawing/drawing.cpp?ds=sidebyside diff --git a/samples/drawing/drawing.cpp b/samples/drawing/drawing.cpp index 5c71ee2b09..4b7f12ac5e 100644 --- a/samples/drawing/drawing.cpp +++ b/samples/drawing/drawing.cpp @@ -878,9 +878,10 @@ void MyCanvas::DrawRegionsHelper(wxDC& dc, wxCoord x, bool firstTime) dc.DestroyClippingRegion(); wxRegion region(x + 110, y + 20, 100, 270); +#ifndef __WXMOTIF__ if ( !firstTime ) region.Offset(10, 10); - +#endif dc.SetClippingRegion(region); dc.SetBrush( *wxGREY_BRUSH );