- m_refData = new wxBrushRefData();
- M_BRUSHDATA->m_colour = *wxBLACK;
-
- M_BRUSHDATA->m_stipple = stippleBitmap;
-
- if (M_BRUSHDATA->m_stipple.GetMask())
- M_BRUSHDATA->m_style = wxSTIPPLE_MASK_OPAQUE;
- else
- M_BRUSHDATA->m_style = wxSTIPPLE;
-
- if (wxTheBrushList) wxTheBrushList->AddBrush( this );
-}
+ wxBrushStyle style = wxBRUSHSTYLE_STIPPLE;
+ if (stippleBitmap.GetMask())
+ style = wxBRUSHSTYLE_STIPPLE_MASK_OPAQUE;