X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c9ab2da6f8eae50881d8a467f74d198b1467d975..e16ceb3ca67315531e22417becb2df208529d599:/src/os2/brush.cpp diff --git a/src/os2/brush.cpp b/src/os2/brush.cpp index 8e4682fff7..91b77c959e 100644 --- a/src/os2/brush.cpp +++ b/src/os2/brush.cpp @@ -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 == +