aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/gfx
diff options
context:
space:
mode:
authorFilippos Karapetis2009-07-03 14:18:20 +0000
committerFilippos Karapetis2009-07-03 14:18:20 +0000
commit69da51e71d71bb700a4e5e5419f64f482cb9fabc (patch)
treedf83a1be119b37a3774b677d1633378f0cdce7bc /engines/sci/gfx
parent9b3074d929d6313422677c5fa5b1bf741884e28d (diff)
downloadscummvm-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')
-rw-r--r--engines/sci/gfx/gfx_driver.cpp7
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;