diff options
author | Gregory Montoir | 2005-11-10 23:07:54 +0000 |
---|---|---|
committer | Gregory Montoir | 2005-11-10 23:07:54 +0000 |
commit | 543072804bb636af26100859bd599fd3153cd198 (patch) | |
tree | 5e304cfc1a033bc8c2132dd83941e9e62fc304b5 | |
parent | 7276061b355a156e4ecd56c6d4baf24d524a2d86 (diff) | |
download | scummvm-rg350-543072804bb636af26100859bd599fd3153cd198.tar.gz scummvm-rg350-543072804bb636af26100859bd599fd3153cd198.tar.bz2 scummvm-rg350-543072804bb636af26100859bd599fd3153cd198.zip |
Made drawStripToScreen() return when width=0, this prevents copyRectToScreen() from asserting during the cannon sequence in COMI.
svn-id: r19552
-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 f56562d8cd..caa8a7a93e 100644 --- a/scumm/gfx.cpp +++ b/scumm/gfx.cpp @@ -534,7 +534,7 @@ void ScummEngine::drawStripToScreen(VirtScreen *vs, int x, int width, int top, i int y = vs->topline + top - _screenTop; int height = bottom - top; - if (height <= 0) + if (height <= 0 || width <= 0) return; // Compute screen etc. buffer pointers |