[Scummvm-cvs-logs] CVS: scummvm/scumm costume.cpp,1.61,1.62

Pawel Kolodziejski aquadran at users.sourceforge.net
Thu Jun 19 05:10:17 CEST 2003


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

Modified Files:
	costume.cpp 
Log Message:
fix for len variable in v1 costume codec

Index: costume.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/costume.cpp,v
retrieving revision 1.61
retrieving revision 1.62
diff -u -d -r1.61 -r1.62
--- costume.cpp	19 Jun 2003 11:29:15 -0000	1.61
+++ costume.cpp	19 Jun 2003 12:08:10 -0000	1.62
@@ -273,7 +273,7 @@
 	const byte *src;
 	byte *dst;
 	byte color;
-	byte len = 0;	// FIXME - err, len is never set to anything...
+	byte len = 0;
 
 	int y = 0;
 	src = _srcptr;
@@ -282,7 +282,7 @@
 	for (int x = 0; x < (_width >> 3); x++) {
 		color = *src++;
 		if (color & 0x80) {
-			len &= 0x7f;
+			len = color & 0x7f;
 			color = *src++;
 			for (int z = 0; z < len; z++) {
 				dst[0] = dst[1] = _vm->gdi._C64Colors[(color >> 6) & 3];





More information about the Scummvm-git-logs mailing list