X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8ecff18117f8cabc0f515ad81aa4ad265e5e17d3..d949570b6673dadd764686213afb89bddb6f19da:/src/os2/brush.cpp diff --git a/src/os2/brush.cpp b/src/os2/brush.cpp index d4a0a320dd..91b77c959e 100644 --- a/src/os2/brush.cpp +++ b/src/os2/brush.cpp @@ -197,8 +197,8 @@ bool wxBrush::RealizeResource() bOk = (bool)::GpiSetAttrs( M_BRUSHDATA->m_hBrush ,PRIM_AREA ,ABB_COLOR | ABB_BACK_COLOR | ABB_MIX_MODE | ABB_BACK_MIX_MODE | - ABB_SET | ABB_SYMBOL - ,ABB_REF_POINT + ABB_SET | ABB_SYMBOL | ABB_REF_POINT + ,ABB_SET | ABB_SYMBOL | ABB_REF_POINT ,&M_BRUSHDATA->m_vBundle ); if (!bOk) @@ -212,7 +212,7 @@ bool wxBrush::RealizeResource() return false; } // end of wxBrush::RealizeResource -WXHANDLE wxBrush::GetResourceHandle() +WXHANDLE wxBrush::GetResourceHandle() const { if (!M_BRUSHDATA) return 0; @@ -291,3 +291,16 @@ void wxBrush::SetPS( M_BRUSHDATA->m_hBrush = hPS; RealizeResource(); } // end of WxWinGdi_CPen::SetPS + + +bool wxBrush::operator == ( + const wxBrush& brush +) const +{ + if (m_refData == brush.m_refData) return true; + + if (!m_refData || !brush.m_refData) return false; + + return ( *(wxBrushRefData*)m_refData == *(wxBrushRefData*)brush.m_refData ); +} // end of wxBrush::operator == +