[Scummvm-cvs-logs] CVS: scummvm/scumm nut_renderer.cpp,1.20,1.21

Max Horn fingolfin at users.sourceforge.net
Sat Mar 8 05:51:03 CET 2003


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

Modified Files:
	nut_renderer.cpp 
Log Message:
hacked in some crude clipping code for drawChar; let's see if that helps Valgrind

Index: nut_renderer.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/nut_renderer.cpp,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- nut_renderer.cpp	6 Mar 2003 21:46:04 -0000	1.20
+++ nut_renderer.cpp	8 Mar 2003 13:26:20 -0000	1.21
@@ -209,6 +209,8 @@
 			maskpos = 0;
 			for (int32 tx = 0; tx < width; tx++) {
 				byte pixel = *src++;
+				if (x + tx >= 640 || y + ty >= 480)
+					continue;
 #if 1
 				if (pixel != 0) {
 					dst[tx] = color;





More information about the Scummvm-git-logs mailing list