#pragma hdrstop
#endif
+#include "wx/brush.h"
+
#ifndef WX_PRECOMP
#include "wx/list.h"
#include "wx/utils.h"
#include "wx/app.h"
- #include "wx/brush.h"
#endif // WX_PRECOMP
#include "wx/msw/private.h"
// don't compare HBRUSHes
return m_style == data.m_style &&
m_colour == data.m_colour &&
- m_stipple == data.m_stipple;
+ m_stipple.IsSameAs(data.m_stipple);
}
void wxBrushRefData::DoSetStipple(const wxBitmap& stipple)
// wxBrush house keeping stuff
// ----------------------------------------------------------------------------
-wxBrush& wxBrush::operator=(const wxBrush& brush)
-{
- if ( this != &brush )
- {
- Ref(brush);
- }
-
- return *this;
-}
-
bool wxBrush::operator==(const wxBrush& brush) const
{
const wxBrushRefData *brushData = (wxBrushRefData *)brush.m_refData;
M_BRUSHDATA->SetColour(col);
}
-void wxBrush::SetColour(const unsigned char r, const unsigned char g, const unsigned char b)
+void wxBrush::SetColour(unsigned char r, unsigned char g, unsigned char b)
{
AllocExclusive();