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