/////////////////////////////////////////////////////////////////////////////
-// Name: cursor.cpp
+// Name: src/mgl/cursor.cpp
// Purpose:
// Author: Vaclav Slavik
// Id: $Id$
// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-
-#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
-#pragma implementation "cursor.h"
-#endif
-
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
case wxCURSOR_NONE:
*this = wxNullCursor;
return;
- break;
default:
wxFAIL_MSG(wxT("unsupported cursor type"));
break;
}
-
+
M_CURSORDATA->m_cursor = new MGLCursor(cursorname);
// if we cannot load arrow cursor, use MGL's default arrow cursor:
delete M_CURSORDATA->m_cursor;
M_CURSORDATA->m_cursor = new MGLCursor(MGL_DEF_CURSOR);
}
-
+
if ( !M_CURSORDATA->m_cursor->valid() )
{
wxLogError(_("Couldn't create cursor."));
else
{
(*gs_cursorsHash)[cursorId] = *this;
- wxLogTrace(_T("mglcursor"), _T("cursor id %i added to cache (%s)"),
+ wxLogTrace(_T("mglcursor"), _T("cursor id %i added to cache (%s)"),
cursorId, cursorname);
}
}
wxCursor::wxCursor(const wxString& cursor_file,
long flags,
- int hotSpotX, int hotSpotY)
+ int WXUNUSED(hotSpotX), int WXUNUSED(hotSpotY))
{
if ( flags == wxBITMAP_TYPE_CUR || flags == wxBITMAP_TYPE_CUR_RESOURCE )
{
{
if ( g_winMng )
MGL_wmSetGlobalCursor(g_winMng, NULL);
- gs_globalCursor = wxNullCursor;
+ gs_globalCursor = wxNullCursor;
}
}
class wxCursorModule : public wxModule
{
public:
- virtual bool OnInit() { return TRUE; }
-
+ virtual bool OnInit() { return true; }
+
virtual void OnExit()
{
wxDELETE(gs_cursorsHash);