X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b3c861501a451503b31c075ccb59d16b0ae01e99..387c7b3eefde23a62e20465000dd96d58fc63bcd:/src/dfb/cursor.cpp diff --git a/src/dfb/cursor.cpp b/src/dfb/cursor.cpp index 58417b3d3b..c5465f52fc 100644 --- a/src/dfb/cursor.cpp +++ b/src/dfb/cursor.cpp @@ -63,30 +63,11 @@ wxCursor::wxCursor(const wxString& cursor_file, #warning "FIXME" } -bool wxCursor::Ok() const +bool wxCursor::IsOk() const { return m_refData && M_CURSOR->m_bitmap.Ok(); } -bool wxCursor::operator==(const wxCursor& cursor) const -{ - if ( Ok() ) - { - if ( !cursor.Ok() ) - return false; - else if ( M_CURSOR->m_id != M_CURSOR_OF(cursor)->m_id ) - return false; - else if ( M_CURSOR->m_id == -1 ) // non-stock cursor - return (m_refData == cursor.m_refData); - else - return true; // IDs != -1 and are the same - } - else - { - return !cursor.Ok(); - } -} - wxObjectRefData *wxCursor::CreateRefData() const { return new wxCursorRefData;