aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorBastien Bouclet2010-12-11 12:59:56 +0000
committerBastien Bouclet2010-12-11 12:59:56 +0000
commitadc7dc0785087d4dd4c59fd418f499e5cc7572ce (patch)
treee1e42700e067642fb9f4b9e1eb5c5e8bbbf64c40 /engines
parent7419d8c0874b36d9ef8954132832dbba9f5f6204 (diff)
downloadscummvm-rg350-adc7dc0785087d4dd4c59fd418f499e5cc7572ce.tar.gz
scummvm-rg350-adc7dc0785087d4dd4c59fd418f499e5cc7572ce.tar.bz2
scummvm-rg350-adc7dc0785087d4dd4c59fd418f499e5cc7572ce.zip
MOHAWK: Fix using wrong coordinates in Myst opcode 28, restoreDefaultRect
svn-id: r54864
Diffstat (limited to 'engines')
-rw-r--r--engines/mohawk/myst_scripts.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/mohawk/myst_scripts.cpp b/engines/mohawk/myst_scripts.cpp
index 5195227ded..5f27b3704c 100644
--- a/engines/mohawk/myst_scripts.cpp
+++ b/engines/mohawk/myst_scripts.cpp
@@ -603,7 +603,13 @@ void MystScriptParser::o_restoreDefaultRect(uint16 op, uint16 var, uint16 argc,
debugC(kDebugScript, "\trect.right: %d", rect.right);
debugC(kDebugScript, "\trect.bottom: %d", rect.bottom);
- _vm->_gfx->copyImageSectionToScreen(_vm->getCardBackgroundId(), rect, rect);
+ Common::Rect src;
+ src.left = rect.left;
+ src.top = 333 - rect.bottom;
+ src.right = rect.right;
+ src.bottom = 333 - rect.top;
+
+ _vm->_gfx->copyImageSectionToScreen(_vm->getCardBackgroundId(), src, rect);
} else
unknown(op, var, argc, argv);
}