mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-08 04:50:07 +01:00
wx.GCDC is only badly needed on MSW, so just do it there.
This commit is contained in:
@@ -398,7 +398,7 @@ class BufferedWindow(wx.Window):
|
||||
|
||||
if self._bufferedstyle == SM_BUFFERED_DC:
|
||||
dc = wx.BufferedDC(wx.ClientDC(self), self._Buffer)
|
||||
if not 'wxMac' in wx.PlatformInfo:
|
||||
if 'wxMSW' in wx.PlatformInfo:
|
||||
dc = wx.GCDC(dc)
|
||||
self.Draw(dc)
|
||||
else:
|
||||
@@ -406,7 +406,7 @@ class BufferedWindow(wx.Window):
|
||||
dc = wx.MemoryDC()
|
||||
dc.SelectObject(self._Buffer)
|
||||
|
||||
if not 'wxMac' in wx.PlatformInfo:
|
||||
if 'wxMSW' in wx.PlatformInfo:
|
||||
dc = wx.GCDC(dc)
|
||||
self.Draw(dc)
|
||||
# update the screen
|
||||
|
||||
Reference in New Issue
Block a user