- if (M_BRUSHDATA->m_stipple.GetMask())
- M_BRUSHDATA->m_style = wxSTIPPLE_MASK_OPAQUE;
- else
- M_BRUSHDATA->m_style = wxSTIPPLE;
-
- if (wxTheBrushList) wxTheBrushList->AddBrush( this );
-}
-
-wxBrush::wxBrush( const wxBrush &brush )
-{
- Ref( brush );
-
- if (wxTheBrushList) wxTheBrushList->AddBrush( this );
+ m_refData = new wxBrushRefData(*wxBLACK, style);
+ M_BRUSHDATA->m_stipple = stippleBitmap;