X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8f7b34a878bbcb2f71a0c7694e2a3bec51460218..b916f809336755620b010293637b12763f01455d:/src/mgl/pen.cpp?ds=inline diff --git a/src/mgl/pen.cpp b/src/mgl/pen.cpp index eacb859d6c..e46418d070 100644 --- a/src/mgl/pen.cpp +++ b/src/mgl/pen.cpp @@ -12,6 +12,13 @@ #pragma implementation "pen.h" #endif +// For compilers that support precompilation, includes "wx.h". +#include "wx/wxprec.h" + +#ifdef __BORLANDC__ + #pragma hdrstop +#endif + #include "wx/pen.h" #include "wx/bitmap.h" #include "wx/mgl/private.h" @@ -79,21 +86,12 @@ wxPenRefData::wxPenRefData(const wxPenRefData& data) IMPLEMENT_DYNAMIC_CLASS(wxPen,wxGDIObject) -wxPen::wxPen() -{ - if ( wxThePenList ) - wxThePenList->AddPen(this); -} - wxPen::wxPen(const wxColour &colour, int width, int style) { m_refData = new wxPenRefData(); M_PENDATA->m_width = width; M_PENDATA->m_style = style; M_PENDATA->m_colour = colour; - - if ( wxThePenList ) - wxThePenList->AddPen(this); } wxPen::wxPen(const wxBitmap& stipple, int width) @@ -107,22 +105,11 @@ wxPen::wxPen(const wxBitmap& stipple, int width) M_PENDATA->m_style = wxSTIPPLE; M_PENDATA->m_stipple = stipple; wxBitmapToPixPattern(stipple, &(M_PENDATA->m_pixPattern), NULL); - - if ( wxThePenList ) - wxThePenList->AddPen(this); } wxPen::wxPen(const wxPen& pen) { Ref(pen); - if ( wxThePenList ) - wxThePenList->AddPen(this); -} - -wxPen::~wxPen() -{ - if ( wxThePenList ) - wxThePenList->RemovePen(this); } wxPen& wxPen::operator = (const wxPen& pen)