[Scummvm-cvs-logs] CVS: scummvm/scumm gfx.cpp,2.262,2.263

Travis Howell kirben at users.sourceforge.net
Sat Jan 17 18:32:02 CET 2004


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv28623/scumm

Modified Files:
	gfx.cpp 
Log Message:

Add back checks for invalid left/right values, fixes regressions for now.


Index: gfx.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/gfx.cpp,v
retrieving revision 2.262
retrieving revision 2.263
diff -u -d -r2.262 -r2.263
--- gfx.cpp	8 Jan 2004 21:58:46 -0000	2.262
+++ gfx.cpp	18 Jan 2004 02:31:53 -0000	2.263
@@ -563,6 +563,10 @@
 	rect.top -= topline;
 	rect.bottom -= topline;
 
+	if (rect.left < 0)
+		rect.left = 0;
+	if (rect.right < 0)
+		rect.right = 0;
 	rect.clip(vs->width, vs->height);
 
 	markRectAsDirty(vs->number, rect, USAGE_BIT_RESTORED);





More information about the Scummvm-git-logs mailing list