aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/gfx/operations.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2009-10-05 16:43:24 +0000
committerFilippos Karapetis2009-10-05 16:43:24 +0000
commit91a16e0c7dd97b24461901d03b1b485eea833dcc (patch)
treebac7a9a3f565f692d9cfdcbff1849b95fe1854e7 /engines/sci/gfx/operations.cpp
parent4c35022f6b3b5cc77fa90eb306e96a14fbb91a99 (diff)
downloadscummvm-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/operations.cpp')
-rw-r--r--engines/sci/gfx/operations.cpp15
1 files changed, 0 insertions, 15 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;
}