aboutsummaryrefslogtreecommitdiff
path: root/scumm/gfx.cpp
diff options
context:
space:
mode:
authorMax Horn2003-05-04 03:01:55 +0000
committerMax Horn2003-05-04 03:01:55 +0000
commitfbbe36c92737300427345b878495ced536ac3aa7 (patch)
tree33726f12bd2c2a85a476d761e998177924cfa602 /scumm/gfx.cpp
parent2397d2599edf58c8de5e595eadd8ccbce8bf7197 (diff)
downloadscummvm-rg350-fbbe36c92737300427345b878495ced536ac3aa7.tar.gz
scummvm-rg350-fbbe36c92737300427345b878495ced536ac3aa7.tar.bz2
scummvm-rg350-fbbe36c92737300427345b878495ced536ac3aa7.zip
cleanup
svn-id: r7305
Diffstat (limited to 'scumm/gfx.cpp')
-rw-r--r--scumm/gfx.cpp30
1 files changed, 4 insertions, 26 deletions
diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp
index fe078c0311..2dd97a9679 100644
--- a/scumm/gfx.cpp
+++ b/scumm/gfx.cpp
@@ -1204,33 +1204,11 @@ void Gdi::decodeStripOldEGA(byte *dst, byte *src, int height, int stripnr) {
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 {