[Scummvm-cvs-logs] CVS: scummvm/scumm gfx.cpp,2.436,2.437
Max Horn
fingolfin at users.sourceforge.net
Tue Apr 26 08:44:45 CEST 2005
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22067
Modified Files:
gfx.cpp
Log Message:
Perform some clipping (some old savegames had bad usage bits in the same and caused a crash for me due to lack of clipping)
Index: gfx.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/gfx.cpp,v
retrieving revision 2.436
retrieving revision 2.437
diff -u -d -r2.436 -r2.437
--- gfx.cpp 20 Apr 2005 19:59:01 -0000 2.436
+++ gfx.cpp 26 Apr 2005 13:16:02 -0000 2.437
@@ -1674,6 +1674,12 @@
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);
More information about the Scummvm-git-logs
mailing list