]> git.saurik.com Git - wxWidgets.git/blobdiff - src/os2/pen.cpp
Changed order of #ifdefs to get native version on OS/2, even if
[wxWidgets.git] / src / os2 / pen.cpp
index 48da7cb43436b3941cfab29db6dfffc514645961..905a09021b410211dd99c4170c684b8fd17bfb5a 100644 (file)
@@ -24,6 +24,8 @@
 #include "wx/os2/private.h"
 #include "assert.h"
 
+IMPLEMENT_DYNAMIC_CLASS(wxPen, wxGDIObject)
+
 wxPenRefData::wxPenRefData()
 {
     m_style = wxSOLID;
@@ -140,6 +142,11 @@ bool wxPen::FreeResource(bool force)
     else return FALSE;
 }
 
+bool wxPen::IsFree() const
+{
+  return (M_PENDATA && M_PENDATA->m_hPen == 0);
+}
+
 void wxPen::Unshare()
 {
     // Don't change shared data
@@ -231,7 +238,7 @@ void wxPen::SetCap(int Cap)
 
 int wx2os2PenStyle(int wx_style)
 {
-    int cstyle;
+    int cstyle = 0;
 // TODO:
 /*
     switch (wx_style)