X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/899544330f37440c140b72a014c518a911b5b7a4..54590cb07847ca447411e8aefba0b01ccc24be22:/src/x11/cursor.cpp diff --git a/src/x11/cursor.cpp b/src/x11/cursor.cpp index 1e1efbc681..f1b2a9dc89 100644 --- a/src/x11/cursor.cpp +++ b/src/x11/cursor.cpp @@ -19,6 +19,7 @@ #include "wx/utils.h" #include "wx/icon.h" #include "wx/gdicmn.h" + #include "wx/image.h" #endif #include "wx/x11/private.h" @@ -31,7 +32,7 @@ // wxCursor //----------------------------------------------------------------------------- -class wxCursorRefData: public wxObjectRefData +class wxCursorRefData: public wxGDIRefData { public: @@ -143,9 +144,14 @@ wxCursor::~wxCursor() { } -bool wxCursor::IsOk() const +wxGDIRefData *wxCursor::CreateGDIRefData() const { - return (m_refData != NULL); + return new wxCursorRefData; +} + +wxGDIRefData *wxCursor::CloneGDIRefData(const wxGDIRefData *data) const +{ + return new wxCursorRefData(*wx_static_cast(const wxCursorRefData *, data)); } WXCursor wxCursor::GetCursor() const