X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ae601e32a8877d7968fd4552ea7857be11a4d15c..de2a042405d3ce05c0519b9a2aff6c9b423ba404:/wxPython/wx/lib/ogl/_drawn.py?ds=sidebyside diff --git a/wxPython/wx/lib/ogl/_drawn.py b/wxPython/wx/lib/ogl/_drawn.py index 222cb08c76..7f2c1d9831 100644 --- a/wxPython/wx/lib/ogl/_drawn.py +++ b/wxPython/wx/lib/ogl/_drawn.py @@ -90,7 +90,7 @@ class OpSetGDI(DrawOp): if self._gdiIndex in self._image._outlineColours: # Need to construct a brush to match the outline pen's colour if self._image._outlinePen: - br = wx.TheBrushList.FindOrCreateBrush(self._image._outlinePen, wx.SOLID) + br = wx.Brush(self._image._outlinePen, wx.SOLID) if br: dc.SetBrush(br) elif self._gdiIndex in self._image._fillColours: