]> git.saurik.com Git - wxWidgets.git/commitdiff
no need to use a throw-away bitmap, just use th eone built-in to the
authorRobin Dunn <robin@alldunn.com>
Tue, 21 Nov 2006 03:44:35 +0000 (03:44 +0000)
committerRobin Dunn <robin@alldunn.com>
Tue, 21 Nov 2006 03:44:35 +0000 (03:44 +0000)
buffered DC instead

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43556 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

wxPython/wx/lib/editor/editor.py

index d94a8cd8c5b12235211b9794d46cde1466e9cb1b..2a3f3af6ba27df866a8e2e5b4fb8faba0fdd78dc 100644 (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)