[Scummvm-cvs-logs] CVS: scummvm/scumm gfx.cpp,2.61,2.62

Pawel Kolodziejski aquadran at users.sourceforge.net
Tue Apr 29 22:53:02 CEST 2003


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

Modified Files:
	gfx.cpp 
Log Message:
small cleanup

Index: gfx.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/gfx.cpp,v
retrieving revision 2.61
retrieving revision 2.62
diff -u -d -r2.61 -r2.62
--- gfx.cpp	30 Apr 2003 05:48:54 -0000	2.61
+++ gfx.cpp	30 Apr 2003 05:52:03 -0000	2.62
@@ -1116,8 +1116,8 @@
 	byte *bitmap = roomptr + READ_LE_UINT16(roomptr + 10);
 	byte *zplane = roomptr + READ_LE_UINT16(roomptr + 12);
 	int room_width = READ_LE_UINT16(roomptr + 4) >> 3;
-	byte color, data;
-	int x, y, length;
+	byte color = 0, data = 0;
+	int x, y, length = 0;
 	int run = 1;
 
 	for (x = 0 ; x < room_width << 3; x++) {
@@ -1187,7 +1187,7 @@
 	int run = _vm->_egaStripRun[stripnr];
 	bool dither = false;
 	byte dither_table[128];
-	byte data;
+	byte data = 0;
 	int x = 4;
 	do {
 		byte *ptr_dither_table = dither_table;
@@ -1215,7 +1215,6 @@
 		} while (--y);
 		dst -= _vm->_realWidth * 128;
 		dst++;
-
 		ptr_dither_table = dither_table;
 		y = 128;
 		do {
@@ -1237,7 +1236,6 @@
 				*ptr_dither_table = color;
 			}
 			*dst = *ptr_dither_table++;
-
 			dst += _vm->_realWidth;
 		} while (--y);
 		dst -= _vm->_realWidth * 128;
@@ -1248,7 +1246,7 @@
 void Gdi::decompressMaskImgOld(byte *dst, byte *src, int stripnr) {
 	int run = _vm->_egaStripRun[stripnr];
 	int y = 128;
-	byte data;
+	byte data = 0;
 
 	for (;;) {
 		if (run & 0x80) {





More information about the Scummvm-git-logs mailing list