diff options
author | Walter van Niftrik | 2009-04-24 12:30:57 +0000 |
---|---|---|
committer | Walter van Niftrik | 2009-04-24 12:30:57 +0000 |
commit | c0805599ca3627ce0ed23dd00171a0b422bdefb7 (patch) | |
tree | ce548224c193d559cc4a85e55fc1ad4657ea5756 /engines/sci/gfx/gfx_driver.cpp | |
parent | df81ef750c819a483514f423599366c155057b90 (diff) | |
download | scummvm-rg350-c0805599ca3627ce0ed23dd00171a0b422bdefb7.tar.gz scummvm-rg350-c0805599ca3627ce0ed23dd00171a0b422bdefb7.tar.bz2 scummvm-rg350-c0805599ca3627ce0ed23dd00171a0b422bdefb7.zip |
SCI: Fixed mouse cursor hotspots in ECO1.
svn-id: r40110
Diffstat (limited to 'engines/sci/gfx/gfx_driver.cpp')
-rw-r--r-- | engines/sci/gfx/gfx_driver.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sci/gfx/gfx_driver.cpp b/engines/sci/gfx/gfx_driver.cpp index 95c1db3d94..aa8bbc98ac 100644 --- a/engines/sci/gfx/gfx_driver.cpp +++ b/engines/sci/gfx/gfx_driver.cpp @@ -286,13 +286,13 @@ static uint8 *create_cursor(gfx_driver_t *drv, gfx_pixmap_t *pointer, int mode) } -static int scummvm_set_pointer(gfx_driver_t *drv, gfx_pixmap_t *pointer) { - if (pointer == NULL) { +static int scummvm_set_pointer(gfx_driver_t *drv, gfx_pixmap_t *pointer, Common::Point *hotspot) { + if ((pointer == NULL) || (hotspot == NULL)) { g_system->showMouse(false); } else { delete[] S->pointer_data; S->pointer_data = create_cursor(drv, pointer, 1); - g_system->setMouseCursor(S->pointer_data, pointer->width, pointer->height, pointer->xoffset, pointer->yoffset); + g_system->setMouseCursor(S->pointer_data, pointer->width, pointer->height, hotspot->x, hotspot->y); g_system->showMouse(true); } |