diff options
author | Filippos Karapetis | 2009-10-13 17:09:32 +0000 |
---|---|---|
committer | Filippos Karapetis | 2009-10-13 17:09:32 +0000 |
commit | 4e0046dd1f1cd342bd0c2c8b1f7367299e117d15 (patch) | |
tree | e61932ec2bcc65ff270d6a609bd9b6348b4ead46 /engines/sci/gfx/operations.cpp | |
parent | 5aa141539786c4f905addfd0c05f6e00dfd3afd7 (diff) | |
download | scummvm-rg350-4e0046dd1f1cd342bd0c2c8b1f7367299e117d15.tar.gz scummvm-rg350-4e0046dd1f1cd342bd0c2c8b1f7367299e117d15.tar.bz2 scummvm-rg350-4e0046dd1f1cd342bd0c2c8b1f7367299e117d15.zip |
Merged the rest of the cursor code
svn-id: r45029
Diffstat (limited to 'engines/sci/gfx/operations.cpp')
-rw-r--r-- | engines/sci/gfx/operations.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/engines/sci/gfx/operations.cpp b/engines/sci/gfx/operations.cpp index a07188bca6..06549050a7 100644 --- a/engines/sci/gfx/operations.cpp +++ b/engines/sci/gfx/operations.cpp @@ -967,25 +967,6 @@ void gfxop_sleep(GfxState *state, uint32 msecs) { } } -void gfxop_set_pointer_view(GfxState *state, int nr, int loop, int cel, Common::Point *hotspot) { - // FIXME: For now, don't palettize pointers - gfx_pixmap_t *new_pointer = state->gfxResMan->getView(nr, &loop, &cel, 0)->loops[loop].cels[cel]; - - // Eco Quest 1 uses a 1x1 transparent cursor to hide the cursor from the user. Some scalers don't seem to support this. - if (new_pointer->width < 2 || new_pointer->height < 2) { - state->driver->setPointer(NULL, NULL); - return; - } - - if (hotspot) - state->driver->setPointer(new_pointer, hotspot); - else { - // Compute hotspot from xoffset/yoffset - Common::Point p = Common::Point(new_pointer->xoffset + (new_pointer->width >> 1), new_pointer->yoffset + new_pointer->height - 1); - state->driver->setPointer(new_pointer, &p); - } -} - #define SCANCODE_ROWS_NR 3 struct scancode_row { |