]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/brush.cpp
adapting to new m_font handling in base (it's not always valid, so use GetFont())
[wxWidgets.git] / src / mac / carbon / brush.cpp
index 37f2043f65628dedeb346b4f91cd2b2122cc9844..84dd60d6e9b4ccc0473f710e7888c8478f3f3bbb 100644 (file)
@@ -81,7 +81,7 @@ bool wxBrushRefData::operator==(const wxBrushRefData& data) const
 void wxBrushRefData::DoSetStipple(const wxBitmap& stipple)
 {
     m_stipple = stipple;
-    m_style = stipple.GetMask() ? wxSTIPPLE_MASK_OPAQUE : wxSTIPPLE;
+    m_style = stipple.GetMask() ? wxBRUSHSTYLE_STIPPLE_MASK_OPAQUE : wxBRUSHSTYLE_STIPPLE;
 }
 //
 //
@@ -138,7 +138,7 @@ wxGDIRefData *wxBrush::CloneGDIRefData(const wxGDIRefData *data) const
 // wxBrush accessors
 // ----------------------------------------------------------------------------
 
-const wxColour& wxBrush::GetColour() const
+wxColour wxBrush::GetColour() const
 {
     wxCHECK_MSG( Ok(), wxNullColour, _T("invalid brush") );