mirror of
https://github.com/lalbornoz/roar.git
synced 2024-11-26 00:46:38 +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):
|
||||
super().__init__(parent, pos=canvasPos, \
|
||||
size=[w*h for w,h in zip(canvasSize, cellSize)])
|
||||
self.SetDoubleBuffered(True)
|
||||
|
||||
self.parentFrame = parentFrame
|
||||
self.canvasMap = None; self.canvasPos = canvasPos; self.canvasSize = canvasSize;
|
||||
|
Loading…
Reference in New Issue
Block a user