From 0942e16f65a069110115f3fddc4b1c1997b6c74e Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Fri, 9 Nov 2012 22:11:38 +1100 Subject: HOPKINS: Bugfixes for cursor disappearing after using GMM. --- engines/hopkins/events.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/engines/hopkins/events.cpp b/engines/hopkins/events.cpp index a65e27e186..48aea154a1 100644 --- a/engines/hopkins/events.cpp +++ b/engines/hopkins/events.cpp @@ -22,6 +22,7 @@ #include "common/system.h" #include "common/textconsole.h" +#include "graphics/cursorman.h" #include "hopkins/events.h" #include "hopkins/files.h" #include "hopkins/globals.h" @@ -122,14 +123,14 @@ int EventsManager::BMOUSE() { // Mouse Off void EventsManager::MOUSE_OFF() { souris_flag = false; - g_system->showMouse(false); + CursorMan.showMouse(false); } // Mouse On void EventsManager::MOUSE_ON() { souris_on(); souris_flag = true; - g_system->showMouse(true); + CursorMan.showMouse(true); } // Change Mouse Cursor @@ -508,7 +509,7 @@ void EventsManager::updateCursor() { // Set the ScummVM cursor from the surface Graphics::PixelFormat pixelFormat = g_system->getScreenFormat(); - g_system->setMouseCursor(cursorPixels, _vm->_globals.OBJL, _vm->_globals.OBJH, + CursorMan.replaceCursor(cursorPixels, _vm->_globals.OBJL, _vm->_globals.OBJH, xOffset, 0, 0, true, &pixelFormat); // Delete the cursor surface -- cgit v1.2.3