[Scummvm-cvs-logs] CVS: scummvm/scumm gfx.cpp,2.474,2.475

Max Horn fingolfin at users.sourceforge.net
Tue Nov 8 14:16:41 CET 2005


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13963/scumm

Modified Files:
	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.474
retrieving revision 2.475
diff -u -d -r2.474 -r2.475
--- gfx.cpp	19 Oct 2005 07:06:10 -0000	2.474
+++ gfx.cpp	8 Nov 2005 22:15:49 -0000	2.475
@@ -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