From: Vadim Zeitlin Date: Sat, 22 Mar 2008 00:02:48 +0000 (+0000) Subject: add compatible FindOrCreateBrush(wxColour, int) (also fixes wxMotif compilation) X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/b09cac450645c3b93baff6d50c412c9612869fe5 add compatible FindOrCreateBrush(wxColour, int) (also fixes wxMotif compilation) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52664 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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*) );