X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/32b8ec418aee4e38877d4cb79e2984c766dcc358..b916f809336755620b010293637b12763f01455d:/src/mgl/pen.cpp diff --git a/src/mgl/pen.cpp b/src/mgl/pen.cpp index fbe695416e..e46418d070 100644 --- a/src/mgl/pen.cpp +++ b/src/mgl/pen.cpp @@ -3,7 +3,7 @@ // Purpose: // Author: Vaclav Slavik // Id: $Id$ -// Copyright: (c) 2001 Vaclav Slavik +// Copyright: (c) 2001 SciTech Software, Inc. (www.scitechsoft.com) // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// @@ -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)