From adc7dc0785087d4dd4c59fd418f499e5cc7572ce Mon Sep 17 00:00:00 2001 From: Bastien Bouclet Date: Sat, 11 Dec 2010 12:59:56 +0000 Subject: MOHAWK: Fix using wrong coordinates in Myst opcode 28, restoreDefaultRect svn-id: r54864 --- engines/mohawk/myst_scripts.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'engines') 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); } -- cgit v1.2.3