diff options
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/gfx.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp index 0a51aef884..fe692a0c7a 100644 --- a/scumm/gfx.cpp +++ b/scumm/gfx.cpp @@ -1727,7 +1727,10 @@ void Gdi::resetBackground(int top, int bottom, int strip) { byte *backbuff_ptr, *bgbak_ptr; int numLinesToProcess; - if (bottom >= vs->h) + if (top < 0) + top = 0; + + if (bottom > vs->h) bottom = vs->h; if (top >= bottom) |