diff options
author | Paul Gilbert | 2010-06-24 08:17:46 +0000 |
---|---|---|
committer | Paul Gilbert | 2010-06-24 08:17:46 +0000 |
commit | aa0c86e7557fbe68d33dec52139015562004742f (patch) | |
tree | c94ee1a824d2cd2f668e073c416a5b31ba61a4ce | |
parent | cd8bec1ae28c89f89fa8e4707a81b2947bd9ebc5 (diff) | |
download | scummvm-rg350-aa0c86e7557fbe68d33dec52139015562004742f.tar.gz scummvm-rg350-aa0c86e7557fbe68d33dec52139015562004742f.tar.bz2 scummvm-rg350-aa0c86e7557fbe68d33dec52139015562004742f.zip |
Bugfix for correctly decoding 2-bit encoded depth surfaces
svn-id: r50206
-rw-r--r-- | engines/m4/mads_scene.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/m4/mads_scene.cpp b/engines/m4/mads_scene.cpp index a464438981..60fffadc07 100644 --- a/engines/m4/mads_scene.cpp +++ b/engines/m4/mads_scene.cpp @@ -714,7 +714,7 @@ void MadsSceneResources::load(int sceneNumber, const char *resName, int v0, M4Su for (int byteCtr = 0; byteCtr < runLength; ++byteCtr) { byte v = byteVal; for (int bitCtr = 0; bitCtr < 4; ++bitCtr, v >>= 2) - *destP++ = v & 3; + *destP++ = (((v & 1) + 1) << 3) - 1; } } else { // 8-bit depth pixels |