diff options
author | Filippos Karapetis | 2011-01-12 23:30:59 +0000 |
---|---|---|
committer | Filippos Karapetis | 2011-01-12 23:30:59 +0000 |
commit | d8682a74a5a876a14426301db494e23b47716a0f (patch) | |
tree | 3bd4d6e23baa40ac2faa4c9fa54ef0b5049ebcb0 /engines/sci | |
parent | 30f8365502dcd6f1f3e23c4c4f5a3fe6800f5786 (diff) | |
download | scummvm-rg350-d8682a74a5a876a14426301db494e23b47716a0f.tar.gz scummvm-rg350-d8682a74a5a876a14426301db494e23b47716a0f.tar.bz2 scummvm-rg350-d8682a74a5a876a14426301db494e23b47716a0f.zip |
SCI: Simplified the kMoveCursor code
svn-id: r55216
Diffstat (limited to 'engines/sci')
-rw-r--r-- | engines/sci/engine/kgraphics.cpp | 7 |
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; } |