#include "wx/app.h"
#include "wx/utils.h"
+#ifdef __VMS__
+#pragma message disable nosimpint
+#endif
#include <Xm/Xm.h>
#include <X11/cursorfont.h>
+#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()
{
{
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;
}
// Global cursor setting
-void wxSetCursor(const wxCursor& cursor)
+void wxSetCursor(const wxCursor& WXUNUSED(cursor))
{
// Nothing to do for Motif (no global cursor)
}