X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b23bb1f962436b7705cbd7386022c6774ef6d57f..2051c39fae88ff7a1cb964d7204cfa3356d4cbc5:/src/x11/pen.cpp diff --git a/src/x11/pen.cpp b/src/x11/pen.cpp index 1c274eb754..c6f9366587 100644 --- a/src/x11/pen.cpp +++ b/src/x11/pen.cpp @@ -156,11 +156,11 @@ void wxPen::SetJoin( wxPenJoin joinStyle ) M_PENDATA->m_joinStyle = joinStyle; } -void wxPen::SetStipple( wxBitmap *stipple ) +void wxPen::SetStipple( const wxBitmap& stipple ) { AllocExclusive(); - M_PENDATA->m_stipple = *stipple; + M_PENDATA->m_stipple = stipple; } void wxPen::SetStyle( wxPenStyle style ) @@ -197,21 +197,21 @@ wxDash* wxPen::GetDash() const wxPenCap wxPen::GetCap() const { - wxCHECK_MSG( Ok(), -1, wxT("invalid pen") ); + wxCHECK_MSG( Ok(), wxCAP_INVALID, wxT("invalid pen") ); return M_PENDATA->m_capStyle; } wxPenJoin wxPen::GetJoin() const { - wxCHECK_MSG( Ok(), -1, wxT("invalid pen") ); + wxCHECK_MSG( Ok(), wxJOIN_INVALID, wxT("invalid pen") ); return M_PENDATA->m_joinStyle; } wxPenStyle wxPen::GetStyle() const { - wxCHECK_MSG( Ok(), -1, wxT("invalid pen") ); + wxCHECK_MSG( Ok(), wxPENSTYLE_INVALID, wxT("invalid pen") ); return M_PENDATA->m_style; }