- clr = self.GetBackgroundColour()
- backBrush = wx.Brush(clr, wx.SOLID)
- if wx.Platform == "__WXMAC__" and clr == self.defBackClr:
- # if colour is still the default then use the striped background on Mac
- backBrush.MacSetTheme(1) # 1 == kThemeBrushDialogBackgroundActive
- dc.SetBackground(backBrush)
+ if BUFFERED:
+ clr = self.GetBackgroundColour()
+ backBrush = wx.Brush(clr, wx.SOLID)
+ if wx.Platform == "__WXMAC__" and clr == self.defBackClr:
+ # if colour is still the default then use the striped background on Mac
+ backBrush.MacSetTheme(1) # 1 == kThemeBrushDialogBackgroundActive
+ dc.SetBackground(backBrush)
+ dc.Clear()