no need to use a throw-away bitmap, just use th eone built-in to the
buffered DC instead git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43556 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -241,9 +241,8 @@ class Editor(wx.ScrolledWindow):
|
|||||||
if not odc:
|
if not odc:
|
||||||
odc = wx.ClientDC(self)
|
odc = wx.ClientDC(self)
|
||||||
|
|
||||||
bmp = wx.EmptyBitmap(max(1,self.bw), max(1,self.bh))
|
dc = wx.BufferedDC(odc)
|
||||||
dc = wx.BufferedDC(odc, bmp)
|
if dc.IsOk():
|
||||||
if dc.Ok():
|
|
||||||
dc.SetFont(self.font)
|
dc.SetFont(self.font)
|
||||||
dc.SetBackgroundMode(wx.SOLID)
|
dc.SetBackgroundMode(wx.SOLID)
|
||||||
dc.SetTextBackground(self.bgColor)
|
dc.SetTextBackground(self.bgColor)
|
||||||
|
Reference in New Issue
Block a user