libroar/RoarCanvasWindow.py:dispatchDeltaPatches(): remove cursor prior to updating canvas.

This commit is contained in:
Lucio Andrés Illanes Albornoz 2019-09-12 17:03:21 +02:00
parent 3e4644122b
commit ec515d4ed4

View File

@ -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