]> git.saurik.com Git - wxWidgets.git/commitdiff
Linker fixes for OS/2 build.
authorStefan Neis <Stefan.Neis@t-online.de>
Sat, 29 Mar 2008 21:18:36 +0000 (21:18 +0000)
committerStefan Neis <Stefan.Neis@t-online.de>
Sat, 29 Mar 2008 21:18:36 +0000 (21:18 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52912 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/os2/bitmap.cpp
src/os2/pen.cpp

index d4c45a3099417fe0fc100173db6e4e9cc9819ee8..bdd712eeee6921799d1cb6e1ccd1cc38b889cc31 100644 (file)
@@ -39,6 +39,7 @@
 IMPLEMENT_DYNAMIC_CLASS(wxBitmap, wxGDIObject)
 IMPLEMENT_DYNAMIC_CLASS(wxMask, wxObject)
 
+IMPLEMENT_DYNAMIC_CLASS(wxBitmapHandler, wxObject)
 
 // ============================================================================
 // implementation
index 6dd16877ede3f56f152a2ad4f918c99b83f2e66d..301c86059c7b448671fa1f0f79a5bf108f1089da 100644 (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
 );