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 b6c27ad434
commit 16689cf97f

View File

@ -71,7 +71,11 @@ class RoarCanvasWindow(GuiWindow):
# }}}
# {{{ 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:
if patch == None:
continue