aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/gfx.cpp
diff options
context:
space:
mode:
authorFlorian Kagerer2010-11-05 00:36:23 +0000
committerFlorian Kagerer2010-11-05 00:36:23 +0000
commit206971d16b56ff37a6a81ff85a1b488fdc60c627 (patch)
tree297c170bace8de89f30a5065f2a3654998ec59a2 /engines/scumm/gfx.cpp
parent8c997e26088481340927a779d16d2eb482c14293 (diff)
downloadscummvm-rg350-206971d16b56ff37a6a81ff85a1b488fdc60c627.tar.gz
scummvm-rg350-206971d16b56ff37a6a81ff85a1b488fdc60c627.tar.bz2
scummvm-rg350-206971d16b56ff37a6a81ff85a1b488fdc60c627.zip
SCUMM/FM-TOWNS JAPANESE: fix out of bounds text drawing
(could cause invalid memory access in MI1) svn-id: r54079
Diffstat (limited to 'engines/scumm/gfx.cpp')
-rw-r--r--engines/scumm/gfx.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/scumm/gfx.cpp b/engines/scumm/gfx.cpp
index 8daee06a88..313e8b88c0 100644
--- a/engines/scumm/gfx.cpp
+++ b/engines/scumm/gfx.cpp
@@ -1025,7 +1025,7 @@ void ScummEngine::restoreBackground(Common::Rect rect, byte backColor) {
#ifndef DISABLE_TOWNS_DUAL_LAYER_MODE
if (_game.platform == Common::kPlatformFMTowns && _game.id == GID_MONKEY && vs->number == kVerbVirtScreen && rect.bottom <= 154)
- rect.right = 320;
+ rect.right = 319;
#endif
markRectAsDirty(vs->number, rect, USAGE_BIT_RESTORED);