diff options
author | Bastien Bouclet | 2010-12-11 12:59:56 +0000 |
---|---|---|
committer | Bastien Bouclet | 2010-12-11 12:59:56 +0000 |
commit | adc7dc0785087d4dd4c59fd418f499e5cc7572ce (patch) | |
tree | e1e42700e067642fb9f4b9e1eb5c5e8bbbf64c40 /engines | |
parent | 7419d8c0874b36d9ef8954132832dbba9f5f6204 (diff) | |
download | scummvm-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.cpp | 8 |
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); } |