aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2011-01-12 23:30:59 +0000
committerFilippos Karapetis2011-01-12 23:30:59 +0000
commitd8682a74a5a876a14426301db494e23b47716a0f (patch)
tree3bd4d6e23baa40ac2faa4c9fa54ef0b5049ebcb0
parent30f8365502dcd6f1f3e23c4c4f5a3fe6800f5786 (diff)
downloadscummvm-rg350-d8682a74a5a876a14426301db494e23b47716a0f.tar.gz
scummvm-rg350-d8682a74a5a876a14426301db494e23b47716a0f.tar.bz2
scummvm-rg350-d8682a74a5a876a14426301db494e23b47716a0f.zip
SCI: Simplified the kMoveCursor code
svn-id: r55216
-rw-r--r--engines/sci/engine/kgraphics.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp
index c7b29ca038..184b56317f 100644
--- a/engines/sci/engine/kgraphics.cpp
+++ b/engines/sci/engine/kgraphics.cpp
@@ -209,12 +209,7 @@ reg_t kSetCursor(EngineState *s, int argc, reg_t *argv) {
}
reg_t kMoveCursor(EngineState *s, int argc, reg_t *argv) {
- Common::Point pos;
- if (argc == 2) {
- pos.y = argv[1].toSint16();
- pos.x = argv[0].toSint16();
- g_sci->_gfxCursor->kernelSetPos(pos);
- }
+ g_sci->_gfxCursor->kernelSetPos(Common::Point(argv[0].toSint16(), argv[1].toSint16()));
return s->r_acc;
}