mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-12 22:51:11 +00:00
Made drawStripToScreen() return when width=0, this prevents copyRectToScreen() from asserting during the cannon sequence in COMI.
svn-id: r19552
This commit is contained in:
parent
7276061b35
commit
543072804b
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user