diff options
author | Max Horn | 2003-04-25 00:03:06 +0000 |
---|---|---|
committer | Max Horn | 2003-04-25 00:03:06 +0000 |
commit | 33045523ae1a98b925b87947ce4509aefde1dcd1 (patch) | |
tree | 47d862699eb19d0bb9fb3a2bd78a007e8c9a15d0 | |
parent | 5707a4e4bcb3cac9c6fc28a528c250291b8e14bd (diff) | |
download | scummvm-rg350-33045523ae1a98b925b87947ce4509aefde1dcd1.tar.gz scummvm-rg350-33045523ae1a98b925b87947ce4509aefde1dcd1.tar.bz2 scummvm-rg350-33045523ae1a98b925b87947ce4509aefde1dcd1.zip |
fix a regression my recent change introduce in GF_OLD256 games <sigh>
svn-id: r7099
-rw-r--r-- | scumm/gfx.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/scumm/gfx.cpp b/scumm/gfx.cpp index 8dca82684f..dc3852ba9d 100644 --- a/scumm/gfx.cpp +++ b/scumm/gfx.cpp @@ -858,8 +858,12 @@ void Gdi::drawBitmap(byte *ptr, VirtScreen *vs, int x, int y, const int h, numzbuf = _numZBuffer; assert(numzbuf <= (int)ARRAYSIZE(zplane_list)); - if (_vm->_features & GF_SMALL_HEADER) { - if ((_vm->_features & GF_16COLOR) || (_vm->_features & GF_OLD256)) + if (_vm->_features & GF_OLD256) { + zplane_list[1] = smap_ptr + READ_LE_UINT16(smap_ptr); + if (0 == READ_LE_UINT32(zplane_list[1])) + zplane_list[1] = 0; + } else if (_vm->_features & GF_SMALL_HEADER) { + if (_vm->_features & GF_16COLOR) zplane_list[1] = smap_ptr + READ_LE_UINT16(smap_ptr); else zplane_list[1] = smap_ptr + READ_LE_UINT32(smap_ptr); |