aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/myst_scripts.cpp
diff options
context:
space:
mode:
authorBastien Bouclet2018-04-23 13:02:04 +0200
committerBastien Bouclet2018-04-23 13:04:05 +0200
commit366fbf5d2a7a427735c7f3c144359da21382f119 (patch)
tree94aa9b758ad610b52c1dc97be13552eff8cc4f7c /engines/mohawk/myst_scripts.cpp
parent0015d51d4850913a0329091e1157ed4636b656ad (diff)
downloadscummvm-rg350-366fbf5d2a7a427735c7f3c144359da21382f119.tar.gz
scummvm-rg350-366fbf5d2a7a427735c7f3c144359da21382f119.tar.bz2
scummvm-rg350-366fbf5d2a7a427735c7f3c144359da21382f119.zip
MOHAWK: MYST: Clip one coordinate at a time in o_copyImageToBackBuffer
Fixes Achenar's door animation being mispositionned on Channelwood. Fixes Trac#10498.
Diffstat (limited to 'engines/mohawk/myst_scripts.cpp')
-rw-r--r--engines/mohawk/myst_scripts.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/mohawk/myst_scripts.cpp b/engines/mohawk/myst_scripts.cpp
index 1ff08ea77d..ef49907a8f 100644
--- a/engines/mohawk/myst_scripts.cpp
+++ b/engines/mohawk/myst_scripts.cpp
@@ -603,9 +603,11 @@ void MystScriptParser::o_copyImageToBackBuffer(uint16 var, const ArgumentsArray
Common::Rect dstRect = Common::Rect(args[5], args[6], 544, 333);
- if (dstRect.left == -1 || dstRect.top == -1) {
- // Interpreted as full screen
+ if (dstRect.left == -1) {
dstRect.left = 0;
+ }
+
+ if (dstRect.top == -1) {
dstRect.top = 0;
}