[Scummvm-cvs-logs] CVS: scummvm/scumm gfx.cpp,2.67,2.68

Max Horn fingolfin at users.sourceforge.net
Sat May 3 20:03:01 CEST 2003


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

Modified Files:
	gfx.cpp 
Log Message:
cleanup

Index: gfx.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/gfx.cpp,v
retrieving revision 2.67
retrieving revision 2.68
diff -u -d -r2.67 -r2.68
--- gfx.cpp	4 May 2003 01:10:45 -0000	2.67
+++ gfx.cpp	4 May 2003 03:01:55 -0000	2.68
@@ -1204,33 +1204,11 @@
 	bool dither = false;
 	byte dither_table[128];
 	byte data = 0;
-	int x = 4;
+	byte *ptr_dither_table;
+	int x = 8;
+	int y;
+	memset(dither_table, 0, sizeof(dither_table));	// FIXME - is that correct?
 	do {
-		byte *ptr_dither_table = dither_table;
-		int y = 128;
-		do {
-			if (--run == 0) {
-				data = *src++;
-				if (data & 0x80) {
-					run = data & 0x7f;
-					dither = true;
-				} else {
-					run = data >> 4;
-					dither = false;
-				}
-				if (run == 0) {
-					run = *src++;
-				}
-				color = data & 0x0f;
-			}
-			if (!dither) {
-				*ptr_dither_table = color;
-			}
-			*dst = *ptr_dither_table++;
-			dst += _vm->_realWidth;
-		} while (--y);
-		dst -= _vm->_realWidth * 128;
-		dst++;
 		ptr_dither_table = dither_table;
 		y = 128;
 		do {





More information about the Scummvm-git-logs mailing list