aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2010-06-24 08:17:46 +0000
committerPaul Gilbert2010-06-24 08:17:46 +0000
commitaa0c86e7557fbe68d33dec52139015562004742f (patch)
treec94ee1a824d2cd2f668e073c416a5b31ba61a4ce /engines
parentcd8bec1ae28c89f89fa8e4707a81b2947bd9ebc5 (diff)
downloadscummvm-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
Diffstat (limited to 'engines')
-rw-r--r--engines/m4/mads_scene.cpp2
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