X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fb46a9a6c6f291806a5fecbb848930c344e17e11..36cc39686ab0774ac2049ccfdea39e3fcfecafb2:/src/os2/pen.cpp diff --git a/src/os2/pen.cpp b/src/os2/pen.cpp index 48da7cb434..ec5da7deed 100644 --- a/src/os2/pen.cpp +++ b/src/os2/pen.cpp @@ -24,6 +24,10 @@ #include "wx/os2/private.h" #include "assert.h" +#if !USE_SHARED_LIBRARIES +IMPLEMENT_DYNAMIC_CLASS(wxPen, wxGDIObject) +#endif + wxPenRefData::wxPenRefData() { m_style = wxSOLID; @@ -140,6 +144,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