Restore code checking if the window is already double-buffered

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@74403 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2013-07-05 22:57:46 +00:00
parent a309489a48
commit bbc29c362a

View File

@@ -23,8 +23,10 @@ class TestPanel(wx.Panel):
def OnPaint(self, evt):
#dc = wx.PaintDC(self)
dc = wx.BufferedPaintDC(self)
if self.IsDoubleBuffered():
dc = wx.PaintDC(self)
else:
dc = wx.BufferedPaintDC(self)
dc.SetBackground(wx.WHITE_BRUSH)
dc.Clear()