git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@28733
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
def MakeBitmap(self):
bdr = 10
width, height = self.GetSize()
def MakeBitmap(self):
bdr = 10
width, height = self.GetSize()
+
+ # yes, this is weird, but it appears to work around a bug in wxMac
+ if "wxMac" in wx.PlatformInfo and width == height:
+ height -= 1
+
bmp = wx.EmptyBitmap(width-bdr, height-bdr)
dc = wx.MemoryDC()
dc.SelectObject(bmp)
bmp = wx.EmptyBitmap(width-bdr, height-bdr)
dc = wx.MemoryDC()
dc.SelectObject(bmp)