aboutsummaryrefslogtreecommitdiff
path: root/scumm/gfx.cpp
diff options
context:
space:
mode:
authorPaweł Kołodziejski2003-04-30 05:52:03 +0000
committerPaweł Kołodziejski2003-04-30 05:52:03 +0000
commitf359a141da3740c4fb081a54675a639d0f0e2488 (patch)
tree4e7971155941a5a9af5cb5a9e11a44fe0ecb1a49 /scumm/gfx.cpp
parent39f85f7aac9493c3cc0200cad555a48cf2201af0 (diff)
downloadscummvm-rg350-f359a141da3740c4fb081a54675a639d0f0e2488.tar.gz
scummvm-rg350-f359a141da3740c4fb081a54675a639d0f0e2488.tar.bz2
scummvm-rg350-f359a141da3740c4fb081a54675a639d0f0e2488.zip
small cleanup
svn-id: r7210
Diffstat (limited to 'scumm/gfx.cpp')
-rw-r--r--scumm/gfx.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp
index c29f1912e0..8ffe3ae7d5 100644
--- a/scumm/gfx.cpp
+++ b/scumm/gfx.cpp
@@ -1116,8 +1116,8 @@ void Scumm::buildStripOffsets() {
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 @@ 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;
+ byte data = 0;
int x = 4;
do {
byte *ptr_dither_table = dither_table;
@@ -1215,7 +1215,6 @@ void Gdi::decodeStripOldEGA(byte *dst, byte *src, int height, int stripnr) {
} while (--y);
dst -= _vm->_realWidth * 128;
dst++;
-
ptr_dither_table = dither_table;
y = 128;
do {
@@ -1237,7 +1236,6 @@ void Gdi::decodeStripOldEGA(byte *dst, byte *src, int height, int stripnr) {
*ptr_dither_table = color;
}
*dst = *ptr_dither_table++;
-
dst += _vm->_realWidth;
} while (--y);
dst -= _vm->_realWidth * 128;
@@ -1248,7 +1246,7 @@ void Gdi::decodeStripOldEGA(byte *dst, byte *src, int height, int stripnr) {
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) {