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

Gregory Montoir cyx at users.sourceforge.net
Thu Nov 10 15:09:01 CET 2005


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

Modified Files:
	gfx.cpp 
Log Message:
Made drawStripToScreen() return when width=0, this prevents copyRectToScreen() from asserting during the cannon sequence in COMI.

Index: gfx.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/gfx.cpp,v
retrieving revision 2.475
retrieving revision 2.476
diff -u -d -r2.475 -r2.476
--- gfx.cpp	8 Nov 2005 22:15:49 -0000	2.475
+++ gfx.cpp	10 Nov 2005 23:07:54 -0000	2.476
@@ -534,7 +534,7 @@
 	int y = vs->topline + top - _screenTop;
 	int height = bottom - top;
 	
-	if (height <= 0)
+	if (height <= 0 || width <= 0)
 		return;
 	
 	// Compute screen etc. buffer pointers





More information about the Scummvm-git-logs mailing list