[Scummvm-cvs-logs] CVS: scummvm/bs2/driver render.cpp,1.17,1.18

Max Horn fingolfin at users.sourceforge.net
Sat Sep 6 20:19:07 CEST 2003


Update of /cvsroot/scummvm/scummvm/bs2/driver
In directory sc8-pr-cvs1:/tmp/cvs-serv14143/driver

Modified Files:
	render.cpp 
Log Message:
more endian fixes

Index: render.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/bs2/driver/render.cpp,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- render.cpp	29 Aug 2003 06:42:34 -0000	1.17
+++ render.cpp	7 Sep 2003 03:18:27 -0000	1.18
@@ -1143,9 +1143,9 @@
 		if (p->offset[i] == 0)
 			continue;
 
-		line = (_parallaxLine *) ((uint8 *) p + p->offset[i]);
+		line = (_parallaxLine *) ((uint8 *) p + FROM_LE_32(p->offset[i]));
 		data = (uint8 *) line + sizeof(_parallaxLine);
-		x = line->offset;
+		x = FROM_LE_16(line->offset);
 
 		dst = memchunk + i * p->w + x;
 
@@ -1155,7 +1155,7 @@
 			continue;
 		}
 
-		for (j = 0; j < line->packets; j++) {
+		for (j = 0; j < FROM_LE_16(line->packets); j++) {
 			if (zeros) {
 				dst += *data;
 				x += *data;





More information about the Scummvm-git-logs mailing list