]> git.saurik.com Git - wxWidgets.git/commitdiff
add compatible FindOrCreateBrush(wxColour, int) (also fixes wxMotif compilation)
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 22 Mar 2008 00:02:48 +0000 (00:02 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 22 Mar 2008 00:02:48 +0000 (00:02 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52664 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/brush.h

index a999ffa2bd0cfc8c6bdf0a89ff22262fae31f176..08fc16b5ffa4d93a1bb5e68141d64c1603f60bce 100644 (file)
@@ -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*) );