mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-08 04:50:07 +01:00
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:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user