X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ae601e32a8877d7968fd4552ea7857be11a4d15c..8bc0c17afc3a83b625a6109375bf86a126cac69e:/wxPython/wx/lib/ogl/_drawn.py 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: