diff options
author | Filippos Karapetis | 2009-10-05 16:43:24 +0000 |
---|---|---|
committer | Filippos Karapetis | 2009-10-05 16:43:24 +0000 |
commit | 91a16e0c7dd97b24461901d03b1b485eea833dcc (patch) | |
tree | bac7a9a3f565f692d9cfdcbff1849b95fe1854e7 /engines/sci/gfx | |
parent | 4c35022f6b3b5cc77fa90eb306e96a14fbb91a99 (diff) | |
download | scummvm-rg350-91a16e0c7dd97b24461901d03b1b485eea833dcc.tar.gz scummvm-rg350-91a16e0c7dd97b24461901d03b1b485eea833dcc.tar.bz2 scummvm-rg350-91a16e0c7dd97b24461901d03b1b485eea833dcc.zip |
Moved the cursor movement code in the GUI
svn-id: r44664
Diffstat (limited to 'engines/sci/gfx')
-rw-r--r-- | engines/sci/gfx/operations.cpp | 15 | ||||
-rw-r--r-- | engines/sci/gfx/operations.h | 10 |
2 files changed, 0 insertions, 25 deletions
diff --git a/engines/sci/gfx/operations.cpp b/engines/sci/gfx/operations.cpp index adbe812a6b..65fdfc1de7 100644 --- a/engines/sci/gfx/operations.cpp +++ b/engines/sci/gfx/operations.cpp @@ -1040,21 +1040,6 @@ void gfxop_set_pointer_view(GfxState *state, int nr, int loop, int cel, Common:: } } -void gfxop_set_pointer_position(GfxState *state, Common::Point pos) { - state->pointer_pos = pos; - - if (pos.x > 320 || pos.y > 200) { - debug("[GFX] Attempt to place pointer at invalid coordinates (%d, %d)\n", pos.x, pos.y); - return; // Not fatal - } - - g_system->warpMouse(pos.x * state->driver->getMode()->scaleFactor, pos.y * state->driver->getMode()->scaleFactor); - - // Trigger event reading to make sure the mouse coordinates will - // actually have changed the next time we read them. - gfxop_get_event(state, SCI_EVT_PEEK); -} - void gfxop_set_pointer_zone(GfxState *state, Common::Rect rect) { state->pointerZone = rect; } diff --git a/engines/sci/gfx/operations.h b/engines/sci/gfx/operations.h index d73ef50aab..f20bbf176a 100644 --- a/engines/sci/gfx/operations.h +++ b/engines/sci/gfx/operations.h @@ -389,16 +389,6 @@ void gfxop_set_pointer_cursor(GfxState *state, int nr); void gfxop_set_pointer_view(GfxState *state, int nr, int loop, int cel, Common::Point *hotspot); /** - * Teleports the mouse pointer to a specific position. - * - * Depending on the graphics driver, this operation may be without any effect - * - * @param[in] state The state the pointer is in - * @param[in] pos The position to teleport it to - */ -void gfxop_set_pointer_position(GfxState *state, Common::Point pos); - -/** * Limits the mouse movement to a given rectangle. * * @param[in] state The affected state |