]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/demo/wxDragImage.py
Fix Cygwin and MinGW compilation
[wxWidgets.git] / wxPython / demo / wxDragImage.py
index d4124ae7fd8a519bb92be9c84b18b3a8475c4ff9..d53fb4c67bc7c451c80dadfbc388cf748d9dd0e3 100644 (file)
@@ -138,12 +138,12 @@ class DragCanvas(wxScrolledWindow):
         dc.DestroyClippingRegion()
 
 
-
-
     def OnEraseBackground(self, evt):
         dc = evt.GetDC()
         if not dc:
             dc = wxClientDC(self)
+            rect = self.GetUpdateRegion().GetBox()
+            dc.SetClippingRegion(rect.x, rect.y, rect.width, rect.height)
         self.TileBackground(dc)