X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/ac3688c0d8a39d200f0556ad4b401d89b45ff04a..94f0292941b6520afbabc999da698ef5fe576a46:/src/gtk1/brush.cpp?ds=sidebyside diff --git a/src/gtk1/brush.cpp b/src/gtk1/brush.cpp index d574a9ca0d..eb5606cfea 100644 --- a/src/gtk1/brush.cpp +++ b/src/gtk1/brush.cpp @@ -27,7 +27,7 @@ class wxBrushRefData: public wxGDIRefData public: wxBrushRefData() { - m_style = 0; + m_style = wxBRUSHSTYLE_INVALID; } wxBrushRefData( const wxBrushRefData& data ) @@ -68,7 +68,7 @@ wxBrush::wxBrush(const wxColour& col, int style) { m_refData = new wxBrushRefData; M_BRUSHDATA->m_style = (wxBrushStyle)style; - M_BRUSHDATA->m_colour = colour; + M_BRUSHDATA->m_colour = col; } #endif @@ -80,9 +80,9 @@ wxBrush::wxBrush( const wxBitmap &stippleBitmap ) M_BRUSHDATA->m_stipple = stippleBitmap; if (M_BRUSHDATA->m_stipple.GetMask()) - M_BRUSHDATA->m_style = wxSTIPPLE_MASK_OPAQUE; + M_BRUSHDATA->m_style = wxBRUSHSTYLE_STIPPLE_MASK_OPAQUE; else - M_BRUSHDATA->m_style = wxSTIPPLE; + M_BRUSHDATA->m_style = wxBRUSHSTYLE_STIPPLE_MASK; } wxBrush::~wxBrush() @@ -116,7 +116,7 @@ wxBrushStyle wxBrush::GetStyle() const return M_BRUSHDATA->m_style; } -wxColour &wxBrush::GetColour() const +wxColour wxBrush::GetColour() const { wxCHECK_MSG( Ok(), wxNullColour, _T("invalid brush") ); @@ -157,11 +157,7 @@ void wxBrush::SetStipple( const wxBitmap& stipple ) M_BRUSHDATA->m_stipple = stipple; if (M_BRUSHDATA->m_stipple.GetMask()) - { - M_BRUSHDATA->m_style = wxSTIPPLE_MASK_OPAQUE; - } + M_BRUSHDATA->m_style = wxBRUSHSTYLE_STIPPLE_MASK_OPAQUE; else - { - M_BRUSHDATA->m_style = wxSTIPPLE; - } + M_BRUSHDATA->m_style = wxBRUSHSTYLE_STIPPLE_MASK; }