aboutsummaryrefslogtreecommitdiff
path: root/gfx.cpp
diff options
context:
space:
mode:
authorJames Brown2002-05-05 18:36:24 +0000
committerJames Brown2002-05-05 18:36:24 +0000
commit7bee21d0a2d08985e029a1eb7dc4f3d07c50606f (patch)
treeff499e67d4febb58a446cfa9787989355440c0de /gfx.cpp
parentfe8bfbc9e8dc659479034dbe76f5c5754aa066b7 (diff)
downloadscummvm-rg350-7bee21d0a2d08985e029a1eb7dc4f3d07c50606f.tar.gz
scummvm-rg350-7bee21d0a2d08985e029a1eb7dc4f3d07c50606f.tar.bz2
scummvm-rg350-7bee21d0a2d08985e029a1eb7dc4f3d07c50606f.zip
Fix dig crash
svn-id: r4206
Diffstat (limited to 'gfx.cpp')
-rw-r--r--gfx.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/gfx.cpp b/gfx.cpp
index 7b8f24a778..91d7e97aa0 100644
--- a/gfx.cpp
+++ b/gfx.cpp
@@ -663,7 +663,7 @@ void Gdi::drawBitmap(byte *ptr, VirtScreen * vs, int x, int y, int h,
{
byte *smap_ptr, *where_draw_ptr;
int i;
- byte *zplane_list[4];
+ byte *zplane_list[6];
int bottom;
byte twobufs;
@@ -768,13 +768,13 @@ void Gdi::drawBitmap(byte *ptr, VirtScreen * vs, int x, int y, int h,
else
decompressMaskImg();
}
-
+ printf("numzbuf: %d\n", numzbuf);
for (i = 1; i < numzbuf; i++) {
uint16 offs;
if (!zplane_list[i])
continue;
-
+ printf("zbuf %d\n", i);
if (_vm->_features & GF_SMALL_HEADER)
if (_vm->_features & GF_OLD256)
offs = READ_LE_UINT16(zplane_list[i] + stripnr * 2 + 4);