aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine
diff options
context:
space:
mode:
authorMartin Kiewitz2010-07-22 21:55:45 +0000
committerMartin Kiewitz2010-07-22 21:55:45 +0000
commitd2ab37529e141fcedf0fb855c00ba66dab979e6c (patch)
treebc7ca616a60bc36828e47837903944dc65e7a14c /engines/sci/engine
parentd77649828237a71f383b791f9ae87c17c8cc67bc (diff)
downloadscummvm-rg350-d2ab37529e141fcedf0fb855c00ba66dab979e6c.tar.gz
scummvm-rg350-d2ab37529e141fcedf0fb855c00ba66dab979e6c.tar.bz2
scummvm-rg350-d2ab37529e141fcedf0fb855c00ba66dab979e6c.zip
SCI: kSetCursor change for sci32
we use the movezone like any other rect, but sierra sci actually specifies bottom/right as being the last possible coordinates svn-id: r51174
Diffstat (limited to 'engines/sci/engine')
-rw-r--r--engines/sci/engine/kgraphics.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sci/engine/kgraphics.cpp b/engines/sci/engine/kgraphics.cpp
index 6ca6525aec..299a4f5c81 100644
--- a/engines/sci/engine/kgraphics.cpp
+++ b/engines/sci/engine/kgraphics.cpp
@@ -149,12 +149,12 @@ static reg_t kSetCursorSci11(EngineState *s, int argc, reg_t *argv) {
if (getSciVersion() >= SCI_VERSION_2) {
top = argv[1].toSint16();
left = argv[0].toSint16();
- bottom = argv[3].toSint16();
- right = argv[2].toSint16();
+ bottom = argv[3].toSint16() + 1; // bottom/right needs to get included in our movezone
+ right = argv[2].toSint16() + 1;
} else {
top = argv[0].toSint16();
left = argv[1].toSint16();
- bottom = argv[2].toSint16();
+ bottom = argv[2].toSint16(); // TODO: check if sci16 behaved the same as sci32
right = argv[3].toSint16();
}