mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-23 18:24:59 +00:00
there ya go
svn-id: r7307
This commit is contained in:
parent
6994cc1eea
commit
0f9e9dcae6
@ -1203,17 +1203,14 @@ void Gdi::decodeStripOldEGA(byte *dst, byte *src, int height, int stripnr) {
|
|||||||
int run = _vm->_egaStripRun[stripnr];
|
int run = _vm->_egaStripRun[stripnr];
|
||||||
bool dither = false;
|
bool dither = false;
|
||||||
byte dither_table[128];
|
byte dither_table[128];
|
||||||
byte data = 0;
|
|
||||||
byte *ptr_dither_table;
|
byte *ptr_dither_table;
|
||||||
int x = 8;
|
|
||||||
int y;
|
|
||||||
memset(dither_table, 0, sizeof(dither_table)); // FIXME - is that correct?
|
memset(dither_table, 0, sizeof(dither_table)); // FIXME - is that correct?
|
||||||
do {
|
|
||||||
|
for (int x = 0; x < 8; x++) {
|
||||||
ptr_dither_table = dither_table;
|
ptr_dither_table = dither_table;
|
||||||
y = height;
|
for (int y = 0; y < height; y++) {
|
||||||
do {
|
|
||||||
if (--run == 0) {
|
if (--run == 0) {
|
||||||
data = *src++;
|
byte data = *src++;
|
||||||
if (data & 0x80) {
|
if (data & 0x80) {
|
||||||
run = data & 0x7f;
|
run = data & 0x7f;
|
||||||
dither = true;
|
dither = true;
|
||||||
@ -1231,10 +1228,10 @@ void Gdi::decodeStripOldEGA(byte *dst, byte *src, int height, int stripnr) {
|
|||||||
}
|
}
|
||||||
*dst = *ptr_dither_table++;
|
*dst = *ptr_dither_table++;
|
||||||
dst += _vm->_realWidth;
|
dst += _vm->_realWidth;
|
||||||
} while (--y);
|
}
|
||||||
dst -= _vm->_realWidth * 128;
|
dst -= _vm->_realWidth * height;
|
||||||
dst++;
|
dst++;
|
||||||
} while (--x);
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void Gdi::decompressMaskImgOld(byte *dst, byte *src, int stripnr) {
|
void Gdi::decompressMaskImgOld(byte *dst, byte *src, int stripnr) {
|
||||||
|
Loading…
Reference in New Issue
Block a user