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:
Robin Dunn 2006-11-21 03:44:35 +00:00
parent 43e4457b18
commit 2efbde68e9

View File

@ -241,9 +241,8 @@ class Editor(wx.ScrolledWindow):
if not odc:
odc = wx.ClientDC(self)
bmp = wx.EmptyBitmap(max(1,self.bw), max(1,self.bh))
dc = wx.BufferedDC(odc, bmp)
if dc.Ok():
dc = wx.BufferedDC(odc)
if dc.IsOk():
dc.SetFont(self.font)
dc.SetBackgroundMode(wx.SOLID)
dc.SetTextBackground(self.bgColor)