Fixing some demos to look and act better
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10848 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user