[Scummvm-cvs-logs] CVS: scummvm/scumm costume.cpp,1.67,1.68

James Brown ender at users.sourceforge.net
Mon Jul 7 08:13:05 CEST 2003


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

Modified Files:
	costume.cpp 
Log Message:
Add missing bit of code, still hopelessly broken.


Index: costume.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/costume.cpp,v
retrieving revision 1.67
retrieving revision 1.68
diff -u -d -r1.67 -r1.68
--- costume.cpp	5 Jul 2003 11:45:17 -0000	1.67
+++ costume.cpp	7 Jul 2003 15:12:21 -0000	1.68
@@ -306,6 +306,21 @@
 					dst = v1.destptr + (x << 3);
 				}
 			}
+		} else {
+			len = color;
+			for (int z = 0; z < len; z++) {
+				color = *src++;
+				dst[0] = dst[1] = _vm->gdi._C64Colors[(color >> 6) & 3];
+				dst[2] = dst[3] = _vm->gdi._C64Colors[(color >> 4) & 3];
+				dst[4] = dst[5] = _vm->gdi._C64Colors[(color >> 2) & 3];
+				dst[6] = dst[7] = _vm->gdi._C64Colors[(color >> 0) & 3];
+				dst += _outwidth;
+				y++;
+				if (y >= (_height >> 3)) {
+					y = 0;
+					dst = v1.destptr + (x << 3);
+				}
+			}
 		}
 	}
 }





More information about the Scummvm-git-logs mailing list