aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorTorbjörn Andersson2016-01-06 11:19:53 +0100
committerTorbjörn Andersson2016-01-06 11:19:53 +0100
commita330d993ae6b216b223d1acada2652ed23286490 (patch)
treeb019670aa74450da592c75dd41e3879c0f1bfb31 /engines
parent15bbcff786d830bf665901b7bf02591fc818360c (diff)
downloadscummvm-rg350-a330d993ae6b216b223d1acada2652ed23286490.tar.gz
scummvm-rg350-a330d993ae6b216b223d1acada2652ed23286490.tar.bz2
scummvm-rg350-a330d993ae6b216b223d1acada2652ed23286490.zip
LAB: Use cursor manager to set, show and hide the cursor
While not strictly necessary, without this the debug console will mess up the cursor on closing, because it doesn't know what cursor to restore.
Diffstat (limited to 'engines')
-rw-r--r--engines/lab/eventman.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/engines/lab/eventman.cpp b/engines/lab/eventman.cpp
index a94ddbf16b..b1348371b1 100644
--- a/engines/lab/eventman.cpp
+++ b/engines/lab/eventman.cpp
@@ -30,6 +30,8 @@
#include "common/events.h"
+#include "graphics/cursorman.h"
+
#include "lab/lab.h"
#include "lab/dispman.h"
@@ -125,18 +127,18 @@ void EventManager::updateMouse() {
}
void EventManager::initMouse() {
- _vm->_system->setMouseCursor(mouseData, MOUSE_WIDTH, MOUSE_HEIGHT, 0, 0, 0);
- _vm->_system->showMouse(false);
+ CursorMan.pushCursor(mouseData, MOUSE_WIDTH, MOUSE_HEIGHT, 0, 0, 0);
+ CursorMan.showMouse(false);
setMousePos(Common::Point(_vm->_graphics->_screenWidth / 2, _vm->_graphics->_screenHeight / 2));
}
void EventManager::mouseShow() {
- _vm->_system->showMouse(true);
+ CursorMan.showMouse(true);
}
void EventManager::mouseHide() {
- _vm->_system->showMouse(false);
+ CursorMan.showMouse(false);
}
void EventManager::setMousePos(Common::Point pos) {