[Scummvm-cvs-logs] CVS: scummvm/scumm gfx.cpp,2.471.2.3,2.471.2.4
Max Horn
fingolfin at users.sourceforge.net
Tue Nov 8 14:16:44 CET 2005
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13967/scumm
Modified Files:
Tag: branch-0-8-0
gfx.cpp
Log Message:
Fix for ScummEngine::drawStripToScreen: do nothing if height is negative
Index: gfx.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/gfx.cpp,v
retrieving revision 2.471.2.3
retrieving revision 2.471.2.4
diff -u -d -r2.471.2.3 -r2.471.2.4
--- gfx.cpp 19 Oct 2005 07:10:53 -0000 2.471.2.3
+++ gfx.cpp 8 Nov 2005 22:15:51 -0000 2.471.2.4
@@ -534,6 +534,9 @@
int y = vs->topline + top - _screenTop;
int height = bottom - top;
+ if (height <= 0)
+ return;
+
// Compute screen etc. buffer pointers
const byte *src = vs->getPixels(x, top);
byte *dst = _compositeBuf + x + y * _screenWidth;
More information about the Scummvm-git-logs
mailing list