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/gfx/gfx_driver.cpp | |
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/gfx/gfx_driver.cpp')
-rw-r--r-- | engines/sci/gfx/gfx_driver.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/sci/gfx/gfx_driver.cpp b/engines/sci/gfx/gfx_driver.cpp index 961eecc6fd..3420472943 100644 --- a/engines/sci/gfx/gfx_driver.cpp +++ b/engines/sci/gfx/gfx_driver.cpp @@ -25,6 +25,7 @@ #include "common/scummsys.h" #include "common/system.h" +#include "graphics/cursorman.h" #include "graphics/primitives.h" #include "sci/sci.h" @@ -252,7 +253,7 @@ byte *GfxDriver::createCursor(gfx_pixmap_t *pointer) { int GfxDriver::setPointer(gfx_pixmap_t *pointer, Common::Point *hotspot) { if ((pointer == NULL) || (hotspot == NULL)) { - g_system->showMouse(false); + CursorMan.showMouse(false); } else { byte *cursorData = createCursor(pointer); @@ -266,8 +267,8 @@ int GfxDriver::setPointer(gfx_pixmap_t *pointer, Common::Point *hotspot) { if (!pointer->palette) color_key = 63; - g_system->setMouseCursor(cursorData, pointer->width, pointer->height, hotspot->x, hotspot->y, color_key); - g_system->showMouse(true); + CursorMan.replaceCursor(cursorData, pointer->width, pointer->height, hotspot->x, hotspot->y, color_key); + CursorMan.showMouse(true); delete[] cursorData; cursorData = 0; |