aboutsummaryrefslogtreecommitdiff
path: root/engines/touche/touche.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2007-04-01 13:16:29 +0000
committerTorbjörn Andersson2007-04-01 13:16:29 +0000
commit4550ca1572b9b3c4bae6961bf37299ab3ad44e84 (patch)
tree1d70299e61f317e68de828857a5b73d5791b7c62 /engines/touche/touche.cpp
parent397c10f059308f575ea75ea767c87148a7406f33 (diff)
downloadscummvm-rg350-4550ca1572b9b3c4bae6961bf37299ab3ad44e84.tar.gz
scummvm-rg350-4550ca1572b9b3c4bae6961bf37299ab3ad44e84.tar.bz2
scummvm-rg350-4550ca1572b9b3c4bae6961bf37299ab3ad44e84.zip
Use the cursor manager instead of calling the backend functions directly.
(Maybe the backend functions ought to be protected?) svn-id: r26344
Diffstat (limited to 'engines/touche/touche.cpp')
-rw-r--r--engines/touche/touche.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/touche/touche.cpp b/engines/touche/touche.cpp
index e248579814..eb774a0bc4 100644
--- a/engines/touche/touche.cpp
+++ b/engines/touche/touche.cpp
@@ -25,6 +25,7 @@
#include "common/events.h"
#include "common/system.h"
+#include "graphics/cursorman.h"
#include "sound/mididrv.h"
#include "touche/midi.h"
@@ -1389,14 +1390,14 @@ void ToucheEngine::drawHitBoxes() {
void ToucheEngine::showCursor(bool show) {
debugC(9, kDebugEngine, "ToucheEngine::showCursor()");
- _system->showMouse(show);
+ CursorMan.showMouse(show);
}
void ToucheEngine::setCursor(int num) {
debugC(9, kDebugEngine, "ToucheEngine::setCursor(%d)", num);
_currentCursorObject = num;
res_loadImage(num, _mouseData);
- _system->setMouseCursor(_mouseData, kCursorWidth, kCursorHeight, kCursorWidth / 2, kCursorHeight / 2, 0);
+ CursorMan.replaceCursor(_mouseData, kCursorWidth, kCursorHeight, kCursorWidth / 2, kCursorHeight / 2, 0);
}
void ToucheEngine::setDefaultCursor(int num) {