diff --git a/include/wx/brush.h b/include/wx/brush.h index a999ffa2bd..08fc16b5ff 100644 --- a/include/wx/brush.h +++ b/include/wx/brush.h @@ -80,7 +80,14 @@ public: class WXDLLIMPEXP_CORE wxBrushList: public wxGDIObjListBase { public: - wxBrush *FindOrCreateBrush(const wxColour& colour, wxBrushStyle style = wxBRUSHSTYLE_SOLID); + wxBrush *FindOrCreateBrush(const wxColour& colour, + wxBrushStyle style = wxBRUSHSTYLE_SOLID); + +#if FUTURE_WXWIN_COMPATIBILITY_3_0 + wxBrush *FindOrCreateBrush(const wxColour& colour, int style) + { return FindOrCreateBrush(colour, (wxBrushStyle)style); } +#endif + #if WXWIN_COMPATIBILITY_2_6 wxDEPRECATED( void AddBrush(wxBrush*) ); wxDEPRECATED( void RemoveBrush(wxBrush*) );