aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/riven_scripts.cpp
diff options
context:
space:
mode:
authorMatthew Hoops2010-11-25 04:49:11 +0000
committerMatthew Hoops2010-11-25 04:49:11 +0000
commit07ea74d37b636f27c4fc0075f35ec4f4ad50501b (patch)
tree086d7f463df9e867e6f2d81d4b97c062a809aee5 /engines/mohawk/riven_scripts.cpp
parent4c733c427862fa45315e56bcba07e03bb3872ed2 (diff)
downloadscummvm-rg350-07ea74d37b636f27c4fc0075f35ec4f4ad50501b.tar.gz
scummvm-rg350-07ea74d37b636f27c4fc0075f35ec4f4ad50501b.tar.bz2
scummvm-rg350-07ea74d37b636f27c4fc0075f35ec4f4ad50501b.zip
MOHAWK: Refactor cursor handling
Cursor handling has now been moved to a new CursorManager class (which is subclassed for Myst/Riven) from the GraphicsManager classes. This will be needed for Living Books which will have a class for Windows and Mac cursors (coming soon!). svn-id: r54469
Diffstat (limited to 'engines/mohawk/riven_scripts.cpp')
-rw-r--r--engines/mohawk/riven_scripts.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/mohawk/riven_scripts.cpp b/engines/mohawk/riven_scripts.cpp
index b20dc37f0e..8d0743340c 100644
--- a/engines/mohawk/riven_scripts.cpp
+++ b/engines/mohawk/riven_scripts.cpp
@@ -23,6 +23,7 @@
*
*/
+#include "mohawk/cursors.h"
#include "mohawk/graphics.h"
#include "mohawk/riven.h"
#include "mohawk/riven_external.h"
@@ -401,7 +402,7 @@ void RivenScript::clearSLST(uint16 op, uint16 argc, uint16 *argv) {
// Command 13: set mouse cursor (cursor_id)
void RivenScript::changeCursor(uint16 op, uint16 argc, uint16 *argv) {
debug(2, "Change to cursor %d", argv[0]);
- _vm->_gfx->changeCursor(argv[0]);
+ _vm->_cursor->setCursor(argv[0]);
}
// Command 14: pause script execution (delay in ms, u1)