Perform some clipping (some old savegames had bad usage bits in the same and caused a crash for me due to lack of clipping)
svn-id: r17814
This commit is contained in:
parent
f03e73c621
commit
e811cb091b
1 changed files with 6 additions and 0 deletions
|
@ -1674,6 +1674,12 @@ void Gdi::resetBackground(int top, int bottom, int strip) {
|
|||
VirtScreen *vs = &_vm->virtscr[0];
|
||||
byte *backbuff_ptr, *bgbak_ptr;
|
||||
int numLinesToProcess;
|
||||
|
||||
if (bottom >= vs->h)
|
||||
bottom = vs->h;
|
||||
|
||||
if (top >= bottom)
|
||||
return;
|
||||
|
||||
assert(0 <= strip && strip < _numStrips);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue