X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7d9d1fd7088fb2d9f27da3d4c232029807c4eeb7..649d13e837b25f7b948ccfae02b18131f3a0a743:/src/mac/brush.cpp diff --git a/src/mac/brush.cpp b/src/mac/brush.cpp index 36703d2cc7..5c87256763 100644 --- a/src/mac/brush.cpp +++ b/src/mac/brush.cpp @@ -65,8 +65,13 @@ wxBrush::wxBrush(const wxBitmap& stipple) { m_refData = new wxBrushRefData; - M_BRUSHDATA->m_style = wxSTIPPLE; + M_BRUSHDATA->m_colour = *wxBLACK; M_BRUSHDATA->m_stipple = stipple; + + if (M_BRUSHDATA->m_stipple.GetMask()) + M_BRUSHDATA->m_style = wxSTIPPLE_MASK_OPAQUE; + else + M_BRUSHDATA->m_style = wxSTIPPLE; RealizeResource(); }