1. Dobrosław Żybort
  2. Editra IDE

Commits

C...@c3d73ce0-8a6f-49c7-b76d-6d57e0e08775  committed 626a548

Fix drawing issues under 2.9 on Windows

  • Participants
  • Parent commits 815ee6c
  • Branches default

Comments (0)

Files changed (1)

File src/eclib/platebtn.py

View file
 
     def __DrawButton(self):
         """Draw the button"""
-        # TODO using a buffered paintdc on windows with the nobg style
-        #      causes lots of weird drawing. So currently the use of a
-        #      buffered dc is dissabled for this style.
-        if PB_STYLE_NOBG & self._style:
-            dc = wx.PaintDC(self)
-        else:
-            dc = wx.AutoBufferedPaintDCFactory(self)
-
+        dc = wx.PaintDC(self)
         gc = wx.GCDC(dc)
 
         # Setup
         @param evt: wx.EVT_ERASE_BACKGROUND
 
         """
-        pass
+        if not (PB_STYLE_NOBG & self._style):
+            evt.Skip()
 
     def OnFocus(self, evt):
         """Set the visual focus state if need be"""