diff options
| author | Max Horn | 2003-05-04 03:08:52 +0000 | 
|---|---|---|
| committer | Max Horn | 2003-05-04 03:08:52 +0000 | 
| commit | 0f9e9dcae6460a4a1eca200aae1221d423b341af (patch) | |
| tree | 220d833d0b8ab945766a60cbc18b3ed15b46739d | |
| parent | 6994cc1eea708b8ac2d61de1056185187df2e63b (diff) | |
| download | scummvm-rg350-0f9e9dcae6460a4a1eca200aae1221d423b341af.tar.gz scummvm-rg350-0f9e9dcae6460a4a1eca200aae1221d423b341af.tar.bz2 scummvm-rg350-0f9e9dcae6460a4a1eca200aae1221d423b341af.zip  | |
there ya go
svn-id: r7307
| -rw-r--r-- | scumm/gfx.cpp | 17 | 
1 files changed, 7 insertions, 10 deletions
diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp index 8dba0ae65c..5a406e8a81 100644 --- a/scumm/gfx.cpp +++ b/scumm/gfx.cpp @@ -1203,17 +1203,14 @@ void Gdi::decodeStripOldEGA(byte *dst, byte *src, int height, int stripnr) {  	int run = _vm->_egaStripRun[stripnr];  	bool dither = false;  	byte dither_table[128]; -	byte data = 0;  	byte *ptr_dither_table; -	int x = 8; -	int y;  	memset(dither_table, 0, sizeof(dither_table));	// FIXME - is that correct? -	do { + +	for (int x = 0; x < 8; x++) {  		ptr_dither_table = dither_table; -		y = height; -		do { +		for (int y = 0; y < height; y++) {  			if (--run == 0) { -				data = *src++; +				byte data = *src++;  				if (data & 0x80) {  					run = data & 0x7f;  					dither = true; @@ -1231,10 +1228,10 @@ void Gdi::decodeStripOldEGA(byte *dst, byte *src, int height, int stripnr) {  			}  			*dst = *ptr_dither_table++;  			dst += _vm->_realWidth; -		} while (--y); -		dst -= _vm->_realWidth * 128; +		} +		dst -= _vm->_realWidth * height;  		dst++; -	} while (--x); +	}  }  void Gdi::decompressMaskImgOld(byte *dst, byte *src, int stripnr) {  | 
