mirror of
https://github.com/lalbornoz/roar.git
synced 2024-11-22 15:26:37 +00:00
MiRCARTCanvas.py: enable double buffering to eliminate brush flickering.
This commit is contained in:
parent
dec1e4c0d4
commit
363a86fe81
@ -178,6 +178,7 @@ class MiRCARTCanvas(wx.Panel):
|
|||||||
def __init__(self, parent, parentFrame, canvasPos, canvasSize, cellSize):
|
def __init__(self, parent, parentFrame, canvasPos, canvasSize, cellSize):
|
||||||
super().__init__(parent, pos=canvasPos, \
|
super().__init__(parent, pos=canvasPos, \
|
||||||
size=[w*h for w,h in zip(canvasSize, cellSize)])
|
size=[w*h for w,h in zip(canvasSize, cellSize)])
|
||||||
|
self.SetDoubleBuffered(True)
|
||||||
|
|
||||||
self.parentFrame = parentFrame
|
self.parentFrame = parentFrame
|
||||||
self.canvasMap = None; self.canvasPos = canvasPos; self.canvasSize = canvasSize;
|
self.canvasMap = None; self.canvasPos = canvasPos; self.canvasSize = canvasSize;
|
||||||
|
Loading…
Reference in New Issue
Block a user