From 628b80e515fb76e8799badc8aa7683d4d480f4f8 Mon Sep 17 00:00:00 2001 From: HomeWorld Date: Fri, 19 Nov 2010 14:51:52 +0200 Subject: [PATCH] Dont call SetDoubleBuffered at all unless needed --- gui/display.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gui/display.py b/gui/display.py index 6d6fc2803..f36b1a952 100644 --- a/gui/display.py +++ b/gui/display.py @@ -30,7 +30,8 @@ class Display(wx.ListCtrl): #Autodetect if doubleBuffered is None: - self.SetDoubleBuffered("wxMSW" in wx.PlatformInfo and platform.release() != "XP") + if "wxMSW" in wx.PlatformInfo and platform.release() != "XP": + self.SetDoubleBuffered(True) else: self.SetDoubleBuffered(doubleBuffered)