- removed GDI lists from wxMGL
- friendlier wxApp::SetDisplayMode - redirects stdout and stderr to files if __WXDEBUG__ - wxLog initialization and flushing fixes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@12546 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -79,21 +79,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 +98,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)
|
||||
|
||||
Reference in New Issue
Block a user