X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e9576ca53db96b462ed4c0b4bdf47d64c40203e4..b916f809336755620b010293637b12763f01455d:/src/mac/brush.cpp?ds=sidebyside diff --git a/src/mac/brush.cpp b/src/mac/brush.cpp index 4f28e92f53..f9e14bad6b 100644 --- a/src/mac/brush.cpp +++ b/src/mac/brush.cpp @@ -24,7 +24,6 @@ IMPLEMENT_DYNAMIC_CLASS(wxBrush, wxGDIObject) wxBrushRefData::wxBrushRefData() { m_style = wxSOLID; -// TODO: null data } wxBrushRefData::wxBrushRefData(const wxBrushRefData& data) @@ -32,27 +31,19 @@ wxBrushRefData::wxBrushRefData(const wxBrushRefData& data) m_style = data.m_style; m_stipple = data.m_stipple; m_colour = data.m_colour; -/* TODO: null data - m_hBrush = 0; -*/ } wxBrushRefData::~wxBrushRefData() { -// TODO: delete data } // Brushes wxBrush::wxBrush() { - if ( wxTheBrushList ) - wxTheBrushList->AddBrush(this); } wxBrush::~wxBrush() { - if ( wxTheBrushList ) - wxTheBrushList->RemoveBrush(this); } wxBrush::wxBrush(const wxColour& col, int Style) @@ -63,9 +54,6 @@ wxBrush::wxBrush(const wxColour& col, int Style) M_BRUSHDATA->m_style = Style; RealizeResource(); - - if ( wxTheBrushList ) - wxTheBrushList->AddBrush(this); } wxBrush::wxBrush(const wxBitmap& stipple) @@ -76,9 +64,6 @@ wxBrush::wxBrush(const wxBitmap& stipple) M_BRUSHDATA->m_stipple = stipple; RealizeResource(); - - if ( wxTheBrushList ) - wxTheBrushList->AddBrush(this); } void wxBrush::Unshare() @@ -134,7 +119,6 @@ void wxBrush::SetStipple(const wxBitmap& Stipple) bool wxBrush::RealizeResource() { -// TODO: create the brush - return FALSE; + return TRUE; }