aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2010-06-05 18:15:41 +0000
committerFilippos Karapetis2010-06-05 18:15:41 +0000
commitc00d645506d60aea320a72cea2c5b9cb5368891c (patch)
tree21f9a3bcc324acf0fcf75a8398a678bfd4b78e7e
parente9f35fbf4ce36b2a7cbdada429c5e7a2d49cbab8 (diff)
downloadscummvm-rg350-c00d645506d60aea320a72cea2c5b9cb5368891c.tar.gz
scummvm-rg350-c00d645506d60aea320a72cea2c5b9cb5368891c.tar.bz2
scummvm-rg350-c00d645506d60aea320a72cea2c5b9cb5368891c.zip
Fixed the cursor limiting code in GK1
svn-id: r49440
-rw-r--r--engines/sci/engine/kgraphics.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp
index 17d2cd630e..abe55455de 100644
--- a/engines/sci/engine/kgraphics.cpp
+++ b/engines/sci/engine/kgraphics.cpp
@@ -148,6 +148,10 @@ static reg_t kSetCursorSci11(EngineState *s, int argc, reg_t *argv) {
int16 bottom = argv[2].toSint16();
int16 right = argv[3].toSint16();
+ // In SCI32, the right parameter seems to be divided by 2
+ if (getSciVersion() >= SCI_VERSION_2)
+ right *= 2;
+
if ((right >= left) && (bottom >= top)) {
Common::Rect rect = Common::Rect(left, top, right, bottom);
g_sci->_gfxCursor->kernelSetMoveZone(rect);