diff options
author | Eugene Sandulenko | 2006-01-06 13:56:46 +0000 |
---|---|---|
committer | Eugene Sandulenko | 2006-01-06 13:56:46 +0000 |
commit | 6a8f6142c8b9e35637c556132bf09f7dfdc42165 (patch) | |
tree | f2e7a684a995cefcaa53f98a29a5b396025c1e2d /scumm | |
parent | 1ab01a6fb76fcf6ab960229ecb65ecfe15c7159d (diff) | |
download | scummvm-rg350-6a8f6142c8b9e35637c556132bf09f7dfdc42165.tar.gz scummvm-rg350-6a8f6142c8b9e35637c556132bf09f7dfdc42165.tar.bz2 scummvm-rg350-6a8f6142c8b9e35637c556132bf09f7dfdc42165.zip |
Partial fix for MM NES crash. Thanks to Quietust
svn-id: r19931
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/gfx.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp index cd198d24e2..81354fcf35 100644 --- a/scumm/gfx.cpp +++ b/scumm/gfx.cpp @@ -575,7 +575,7 @@ 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) + while (x + width >= _screenWidth) width -= 16; } |