diff options
author | Travis Howell | 2005-12-20 06:55:00 +0000 |
---|---|---|
committer | Travis Howell | 2005-12-20 06:55:00 +0000 |
commit | 1b77cac78672aa9a31f997b01de4f91e89b15a9f (patch) | |
tree | 81448b6c63983ad2bf2fb903c39e2eaeb4335705 /scumm | |
parent | db5526836a9bcd79ac403faff821dc89c6674523 (diff) | |
download | scummvm-rg350-1b77cac78672aa9a31f997b01de4f91e89b15a9f.tar.gz scummvm-rg350-1b77cac78672aa9a31f997b01de4f91e89b15a9f.tar.bz2 scummvm-rg350-1b77cac78672aa9a31f997b01de4f91e89b15a9f.zip |
Change from Quietust:
-Fix assert regressions in NES version of maniac
svn-id: r19812
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/gfx.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp index 6ce482a669..5ec16ed260 100644 --- a/scumm/gfx.cpp +++ b/scumm/gfx.cpp @@ -568,6 +568,8 @@ void ScummEngine::drawStripToScreen(VirtScreen *vs, int x, int width, int top, i // other games we shift it right on rendering stage if ((_platform == Common::kPlatformNES) && (((_NESStartStrip > 0) && (vs->number == kMainVirtScreen)) || (vs->number == kTextVirtScreen))) { x += 16; + if (x + width >= _screenWidth) + width -= 16; } _system->copyRectToScreen(_compositeBuf + x1 + y * _screenWidth, _screenWidth, x, y, width, height); |