[Scummvm-cvs-logs] SF.net SVN: scummvm:[50206] scummvm/trunk/engines/m4/mads_scene.cpp
dreammaster at users.sourceforge.net
dreammaster at users.sourceforge.net
Thu Jun 24 10:17:46 CEST 2010
Revision: 50206
http://scummvm.svn.sourceforge.net/scummvm/?rev=50206&view=rev
Author: dreammaster
Date: 2010-06-24 08:17:46 +0000 (Thu, 24 Jun 2010)
Log Message:
-----------
Bugfix for correctly decoding 2-bit encoded depth surfaces
Modified Paths:
--------------
scummvm/trunk/engines/m4/mads_scene.cpp
Modified: scummvm/trunk/engines/m4/mads_scene.cpp
===================================================================
--- scummvm/trunk/engines/m4/mads_scene.cpp 2010-06-24 08:16:40 UTC (rev 50205)
+++ scummvm/trunk/engines/m4/mads_scene.cpp 2010-06-24 08:17:46 UTC (rev 50206)
@@ -714,7 +714,7 @@
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
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list