X-Git-Url: https://git.ao2.it/PoPiPaint.git/blobdiff_plain/b5ba5a82ab4d1abcbe93b11c3e485a67c32a4593..03fa793ef7490ece5ec44b23cc76316b26246e5a:/CanvasView.py diff --git a/CanvasView.py b/CanvasView.py index a33ee8d..e91902e 100755 --- a/CanvasView.py +++ b/CanvasView.py @@ -93,7 +93,7 @@ class CanvasView(wx.Window): # are bugs regarding bitmaps with alpha channels and MemoryDC self.grid_buffer = self.loadGrid("res/grid.png") - self.pixels_buffer = wx.EmptyBitmap(w, h, depth=32) + self.pixels_buffer = wx.EmptyBitmapRGBA(w, h, 0, 0 ,0, 255) self.drawAllPixels() def setPixelCoordinates(self, gc):