X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/de2d2cdc86590c07642994e58051b94ab356256d..0adad2d72ffb322510e78ea366c58adbd1e8082e:/src/msw/brush.cpp diff --git a/src/msw/brush.cpp b/src/msw/brush.cpp index 825410a28b..66206940e6 100644 --- a/src/msw/brush.cpp +++ b/src/msw/brush.cpp @@ -58,14 +58,10 @@ wxBrushRefData::~wxBrushRefData(void) // Brushes wxBrush::wxBrush(void) { - if ( wxTheBrushList ) - wxTheBrushList->AddBrush(this); } wxBrush::~wxBrush() { - if (wxTheBrushList) - wxTheBrushList->RemoveBrush(this); } wxBrush::wxBrush(const wxColour& col, int Style) @@ -78,8 +74,6 @@ wxBrush::wxBrush(const wxColour& col, int Style) RealizeResource(); - if ( wxTheBrushList ) - wxTheBrushList->AddBrush(this); } wxBrush::wxBrush(const wxBitmap& stipple) @@ -96,8 +90,6 @@ wxBrush::wxBrush(const wxBitmap& stipple) RealizeResource(); - if ( wxTheBrushList ) - wxTheBrushList->AddBrush(this); } bool wxBrush::RealizeResource(void) @@ -127,6 +119,7 @@ bool wxBrush::RealizeResource(void) // - could choose white always for a quick solution break; ***/ +#ifndef __WXMICROWIN__ case wxBDIAGONAL_HATCH: M_BRUSHDATA->m_hBrush = (WXHBRUSH) CreateHatchBrush(HS_BDIAGONAL,ms_colour) ; break ; @@ -157,6 +150,7 @@ bool wxBrush::RealizeResource(void) else M_BRUSHDATA->m_hBrush = (WXHBRUSH) CreateSolidBrush(ms_colour) ; break ; +#endif case wxSOLID: default: M_BRUSHDATA->m_hBrush = (WXHBRUSH) CreateSolidBrush(ms_colour) ;