mirror of
https://github.com/lalbornoz/roar.git
synced 2024-11-25 08:36:38 +00:00
libroar/RoarCanvasWindow.py:dispatchDeltaPatches(): remove cursor prior to updating canvas.
This commit is contained in:
parent
3e4644122b
commit
ec515d4ed4
@ -71,7 +71,11 @@ class RoarCanvasWindow(GuiWindow):
|
|||||||
# }}}
|
# }}}
|
||||||
# {{{ dispatchDeltaPatches(self, deltaPatches)
|
# {{{ dispatchDeltaPatches(self, deltaPatches)
|
||||||
def dispatchDeltaPatches(self, deltaPatches):
|
def dispatchDeltaPatches(self, deltaPatches):
|
||||||
eventDc = self.backend.getDeviceContext(self.GetClientSize(), self, self.GetViewStart())
|
viewRect = self.GetViewStart()
|
||||||
|
eventDc = self.backend.getDeviceContext(self.GetClientSize(), self, viewRect)
|
||||||
|
if self.canvas.dirtyCursor:
|
||||||
|
self.backend.drawCursorMaskWithJournal(self.canvas.journal, eventDc, viewRect)
|
||||||
|
self.canvas.dirtyCursor = False
|
||||||
for patch in deltaPatches:
|
for patch in deltaPatches:
|
||||||
if patch == None:
|
if patch == None:
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user