aboutsummaryrefslogtreecommitdiff
path: root/engines/lure/events.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/lure/events.cpp')
-rw-r--r--engines/lure/events.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/engines/lure/events.cpp b/engines/lure/events.cpp
index 660fb76693..30e393c1ee 100644
--- a/engines/lure/events.cpp
+++ b/engines/lure/events.cpp
@@ -20,6 +20,8 @@
*
*/
+#include "graphics/cursorman.h"
+
#include "lure/events.h"
#include "lure/system.h"
#include "lure/res.h"
@@ -70,11 +72,11 @@ void Mouse::handleEvent(OSystem::Event event) {
void Mouse::cursorOn() {
- System::getReference().showMouse(true);
+ CursorMan.showMouse(true);
}
void Mouse::cursorOff() {
- System::getReference().showMouse(false);
+ CursorMan.showMouse(false);
}
void Mouse::setCursorNum(uint8 cursorNum) {
@@ -89,11 +91,10 @@ void Mouse::setCursorNum(uint8 cursorNum) {
void Mouse::setCursorNum(uint8 cursorNum, int hotspotX, int hotspotY) {
Resources &res = Resources::getReference();
- OSystem &system = System::getReference();
_cursorNum = cursorNum;
byte *cursorAddr = res.getCursor(cursorNum);
- system.setMouseCursor(cursorAddr, CURSOR_WIDTH, CURSOR_HEIGHT, hotspotX, hotspotY, 0);
+ CursorMan.replaceCursor(cursorAddr, CURSOR_WIDTH, CURSOR_HEIGHT, hotspotX, hotspotY, 0);
}
void Mouse::setPosition(int newX, int newY) {