Linker fixes for OS/2 build.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52912 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Neis
2008-03-29 21:18:36 +00:00
parent 6b5c2d5262
commit 34f0083726
2 changed files with 10 additions and 0 deletions

View File

@@ -39,6 +39,7 @@
IMPLEMENT_DYNAMIC_CLASS(wxBitmap, wxGDIObject)
IMPLEMENT_DYNAMIC_CLASS(wxMask, wxObject)
IMPLEMENT_DYNAMIC_CLASS(wxBitmapHandler, wxObject)
// ============================================================================
// implementation

View File

@@ -168,6 +168,15 @@ wxPen::wxPen(
RealizeResource();
} // end of wxPen::wxPen
bool wxPen::operator==(const wxPen& pen) const
{
const wxPenRefData *
penData = wx_static_cast(const wxPenRefData *, pen.m_refData);
// an invalid pen is only equal to another invalid pen
return m_refData ? penData && *M_PENDATA == *penData : !penData;
}
int wx2os2PenStyle(
wxPenStyle nWxStyle
);