X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f88c1a172efd0391ad65621898e6a8823160c4f9..08a15c0d899daad0ff8cc2ed4c06ff78b8ec3cc3:/samples/drawing/drawing.cpp 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 );