From 4e0046dd1f1cd342bd0c2c8b1f7367299e117d15 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Tue, 13 Oct 2009 17:09:32 +0000 Subject: Merged the rest of the cursor code svn-id: r45029 --- engines/sci/gfx/operations.cpp | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'engines/sci/gfx/operations.cpp') 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 { -- cgit v1.2.3