From 9439aebfeedb5d72d90b06bd008686eb5ddb4673 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Mon, 4 Sep 2017 16:12:12 -0700 Subject: [PATCH] wx.GCDC is only badly needed on MSW, so just do it there. --- wx/lib/agw/speedmeter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wx/lib/agw/speedmeter.py b/wx/lib/agw/speedmeter.py index bd256326..ba138720 100644 --- a/wx/lib/agw/speedmeter.py +++ b/wx/lib/agw/speedmeter.py @@ -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