Dont call SetDoubleBuffered at all unless needed

This commit is contained in:
HomeWorld
2010-11-19 14:51:52 +02:00
parent 967d0cc137
commit 628b80e515

View File

@@ -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)