diff options
author | Filippos Karapetis | 2009-07-03 14:18:20 +0000 |
---|---|---|
committer | Filippos Karapetis | 2009-07-03 14:18:20 +0000 |
commit | 69da51e71d71bb700a4e5e5419f64f482cb9fabc (patch) | |
tree | df83a1be119b37a3774b677d1633378f0cdce7bc /engines/sci/engine | |
parent | 9b3074d929d6313422677c5fa5b1bf741884e28d (diff) | |
download | scummvm-rg350-69da51e71d71bb700a4e5e5419f64f482cb9fabc.tar.gz scummvm-rg350-69da51e71d71bb700a4e5e5419f64f482cb9fabc.tar.bz2 scummvm-rg350-69da51e71d71bb700a4e5e5419f64f482cb9fabc.zip |
Replaced all calls for manipulating the mouse cursor to be made to the CursorManager instead of directly to the graphics backend
svn-id: r42060
Diffstat (limited to 'engines/sci/engine')
-rw-r--r-- | engines/sci/engine/kgraphics.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp index 2856c76aa3..c2777d9b0e 100644 --- a/engines/sci/engine/kgraphics.cpp +++ b/engines/sci/engine/kgraphics.cpp @@ -25,6 +25,7 @@ #include "common/system.h" #include "common/events.h" +#include "graphics/cursorman.h" #include "sci/sci.h" #include "sci/debug.h" // for g_debug_sleeptime_factor @@ -306,14 +307,14 @@ reg_t kSetCursor(EngineState *s, int funct_nr, int argc, reg_t *argv) { if (s->_version < SCI_VERSION_1_1) { if (argv[0].toSint16() <= 1) { // Newer (SCI1.1) semantics: show/hide cursor - g_system->showMouse(argv[0].toSint16() != 0); + CursorMan.showMouse(argv[0].toSint16() != 0); } else { // Pre-SCI1.1: set cursor according to the first parameter GFX_ASSERT(gfxop_set_pointer_cursor(s->gfx_state, argv[0].toSint16())); } } else { // SCI1.1: Show/hide cursor - g_system->showMouse(argv[0].toSint16() != 0); + CursorMan.showMouse(argv[0].toSint16() != 0); } break; case 2 : |