mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-04 19:10:09 +01:00
Fix rubberband not clearing DC on redraw
This commit is contained in:
@@ -332,8 +332,7 @@ class RubberBand:
|
|||||||
dc.SetBrush(wx.TRANSPARENT_BRUSH)
|
dc.SetBrush(wx.TRANSPARENT_BRUSH)
|
||||||
dc.SetLogicalFunction(wx.XOR)
|
dc.SetLogicalFunction(wx.XOR)
|
||||||
if boxToErase:
|
if boxToErase:
|
||||||
r = wx.Rect(*boxToErase)
|
dc.Clear()
|
||||||
dc.DrawRectangle(r)
|
|
||||||
|
|
||||||
r = wx.Rect(*boxToDraw)
|
r = wx.Rect(*boxToDraw)
|
||||||
dc.DrawRectangle(r)
|
dc.DrawRectangle(r)
|
||||||
|
|||||||
Reference in New Issue
Block a user