X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f97c985452b20a8c2f0bbfb1d0275298bf09fb45..94e2ed3b8db0220160c0b939782cd46914ec073a:/src/motif/cursor.cpp diff --git a/src/motif/cursor.cpp b/src/motif/cursor.cpp index 24c94be559..24ce2516a0 100644 --- a/src/motif/cursor.cpp +++ b/src/motif/cursor.cpp @@ -19,15 +19,19 @@ #include "wx/app.h" #include "wx/utils.h" +#ifdef __VMS__ +#pragma message disable nosimpint +#endif #include #include +#ifdef __VMS__ +#pragma message enable nosimpint +#endif #include "wx/motif/private.h" -#if !USE_SHARED_LIBRARIES IMPLEMENT_DYNAMIC_CLASS(wxCursor, wxBitmap) IMPLEMENT_DYNAMIC_CLASS(wxXCursor, wxObject) -#endif wxCursorRefData::wxCursorRefData() { @@ -188,8 +192,13 @@ wxCursor::wxCursor(wxStockCursor id) { m_refData = new wxCursorRefData; M_CURSORDATA->m_cursorId = id; + M_CURSORDATA->m_ok = TRUE; + + WXDisplay* display = wxGetDisplay(); + if (!display) + return; - WXCursor cursor = GetXCursor(wxGetDisplay()); + WXCursor cursor = GetXCursor(display); if (cursor) { wxXCursor* c = new wxXCursor; @@ -423,7 +432,7 @@ WXCursor wxCursor::MakeCursor(WXDisplay* display, wxStockCursor id) } // Global cursor setting -void wxSetCursor(const wxCursor& cursor) +void wxSetCursor(const wxCursor& WXUNUSED(cursor)) { // Nothing to do for Motif (no global cursor) }