X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/670f9935630beb2123a5ca62894ae92a3f0efa4f..235751501d3bb4141424cc08a7d88dd506746d18:/src/motif/cursor.cpp diff --git a/src/motif/cursor.cpp b/src/motif/cursor.cpp index a29a6d608f..0e70f27bcf 100644 --- a/src/motif/cursor.cpp +++ b/src/motif/cursor.cpp @@ -20,12 +20,8 @@ #ifndef WX_PRECOMP #include "wx/app.h" -#endif - -#include "wx/utils.h" -#include "wx/window.h" - -#if wxUSE_IMAGE + #include "wx/utils.h" + #include "wx/window.h" #include "wx/image.h" #endif @@ -58,7 +54,7 @@ class WXDLLEXPORT wxCursorRefData: public wxObjectRefData friend class WXDLLEXPORT wxCursor; public: wxCursorRefData(); - ~wxCursorRefData(); + virtual ~wxCursorRefData(); wxXCursorList m_cursors; // wxXCursor objects, one per display wxStockCursor m_cursorId; // wxWidgets standard cursor id @@ -263,7 +259,7 @@ wxCursor::wxCursor(const wxString& name, long flags, int hotSpotX, int hotSpotY) int screen_num = DefaultScreen (dpy); int value = XReadBitmapFile (dpy, RootWindow (dpy, screen_num), - wxConstCast(name.c_str(), char), + wxConstCast(name.mb_str(), char), &w, &h, &pixmap, &hotX, &hotY); if (value == BitmapSuccess) @@ -297,7 +293,7 @@ wxCursor::~wxCursor() { } -bool wxCursor::Ok() const +bool wxCursor::IsOk() const { return m_refData != NULL; }