From ec515d4ed4a834cb467f17c585f0f33e301fe398 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz?= Date: Thu, 12 Sep 2019 17:03:21 +0200 Subject: [PATCH] libroar/RoarCanvasWindow.py:dispatchDeltaPatches(): remove cursor prior to updating canvas. --- libroar/RoarCanvasWindow.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libroar/RoarCanvasWindow.py b/libroar/RoarCanvasWindow.py index 0f6c27f..d031fe9 100644 --- a/libroar/RoarCanvasWindow.py +++ b/libroar/RoarCanvasWindow.py @@ -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