]> git.saurik.com Git - wxWidgets.git/blobdiff - wxPython/samples/doodle/doodle.py
Add man page link for pywxrc.
[wxWidgets.git] / wxPython / samples / doodle / doodle.py
index 5c4c641fae1f9fd079e942e034389a88cc748367..47e01d9e6d82ee7d3c0df041cc770c7f782a3ff3 100644 (file)
@@ -71,7 +71,7 @@ class DoodleWindow(wx.Window):
     def InitBuffer(self):
         """Initialize the bitmap used for buffering the display."""
         size = self.GetClientSize()
-        self.buffer = wx.EmptyBitmap(size.width, size.height)
+        self.buffer = wx.EmptyBitmap(max(1,size.width), max(1,size.height))
         dc = wx.BufferedDC(None, self.buffer)
         dc.SetBackground(wx.Brush(self.GetBackgroundColour()))
         dc.Clear()