[Scummvm-cvs-logs] CVS: scummvm/scumm akos.cpp,1.133,1.134

Travis Howell kirben at users.sourceforge.net
Thu Jul 1 04:24:00 CEST 2004


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

Modified Files:
	akos.cpp 
Log Message:

Fix large delay in library of The Dig regression.
Clipping in akos was made too strict.


Index: akos.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/akos.cpp,v
retrieving revision 1.133
retrieving revision 1.134
diff -u -d -r1.133 -r1.134
--- akos.cpp	29 Jun 2004 10:37:52 -0000	1.133
+++ akos.cpp	1 Jul 2004 11:22:38 -0000	1.134
@@ -815,7 +815,7 @@
 
 	clip.clip(maxw, maxh);
 
-	if (!clip.isValidRect())
+	if ((clip.left >= clip.right) || (clip.top >= clip.bottom))
 		return 0;
 
 	if (_draw_top > clip.top)
@@ -1020,7 +1020,7 @@
 		clip.bottom = maxh;
 	}
 
-	if (!clip.isValidRect())
+	if ((clip.left >= clip.right) || (clip.top >= clip.bottom))
 		return 0;
 
 	if (_draw_top > clip.top)





More information about the Scummvm-git-logs mailing list