diff options
author | Paul Gilbert | 2012-11-09 22:11:38 +1100 |
---|---|---|
committer | Paul Gilbert | 2012-11-09 22:11:38 +1100 |
commit | 0942e16f65a069110115f3fddc4b1c1997b6c74e (patch) | |
tree | a6bb1d7500fb43eabd34a0bae3fd36a84789d0d2 /engines/hopkins | |
parent | d27056e5eaf7db33ac06b7043212cf2016e8c72c (diff) | |
download | scummvm-rg350-0942e16f65a069110115f3fddc4b1c1997b6c74e.tar.gz scummvm-rg350-0942e16f65a069110115f3fddc4b1c1997b6c74e.tar.bz2 scummvm-rg350-0942e16f65a069110115f3fddc4b1c1997b6c74e.zip |
HOPKINS: Bugfixes for cursor disappearing after using GMM.
Diffstat (limited to 'engines/hopkins')
-rw-r--r-- | engines/hopkins/events.cpp | 7 |
1 files 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 |