aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorMartin Kiewitz2015-06-08 18:14:41 +0200
committerMartin Kiewitz2015-06-08 18:14:41 +0200
commit55551cfbd510a8e56562faddc4bb4768e3b72d0a (patch)
tree3976b2912c4f83ed9ba7f6086c883dbe39cdf1bd /engines
parentd5ef021f6fe85597bcf387d99eedb09d105ff517 (diff)
downloadscummvm-rg350-55551cfbd510a8e56562faddc4bb4768e3b72d0a.tar.gz
scummvm-rg350-55551cfbd510a8e56562faddc4bb4768e3b72d0a.tar.bz2
scummvm-rg350-55551cfbd510a8e56562faddc4bb4768e3b72d0a.zip
SHERLOCK: 3DO: add comment about ccbFlag bit 5
Diffstat (limited to 'engines')
-rw-r--r--engines/sherlock/resources.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/sherlock/resources.cpp b/engines/sherlock/resources.cpp
index 068e193219..8d21512d7d 100644
--- a/engines/sherlock/resources.cpp
+++ b/engines/sherlock/resources.cpp
@@ -775,6 +775,12 @@ void ImageFile3DO::load3DOCelFile(Common::SeekableReadStream &stream) {
if (ccbFlags & 0x200) // bit 9
ccbFlags_compressed = true;
+ // bit 5 of ccbFlags defines how RGB-black (0, 0, 0) will get treated
+ // = false -> RGB-black is treated as transparent
+ // = true -> RGB-black is treated as actual black
+ // atm we are always treating it as transparent
+ // it seems this bit is not set for any data of Sherlock Holmes
+
// PRE0 first 3 bits define how many bits per encoded pixel are used
ccbPRE0_bitsPerPixel = imagefile3DO_cel_bitsPerPixelLookupTable[ccbPRE0 & 0x07];
if (!ccbPRE0_bitsPerPixel)