projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed outdated filenames
[wxWidgets.git]
/
wxPython
/
demo
/
wxDragImage.py
diff --git
a/wxPython/demo/wxDragImage.py
b/wxPython/demo/wxDragImage.py
index d4124ae7fd8a519bb92be9c84b18b3a8475c4ff9..d53fb4c67bc7c451c80dadfbc388cf748d9dd0e3 100644
(file)
--- a/
wxPython/demo/wxDragImage.py
+++ b/
wxPython/demo/wxDragImage.py
@@
-138,12
+138,12
@@
class DragCanvas(wxScrolledWindow):
dc.DestroyClippingRegion()
dc.DestroyClippingRegion()
-
-
def OnEraseBackground(self, evt):
dc = evt.GetDC()
if not dc:
dc = wxClientDC(self)
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)
self.TileBackground(dc)