[Scummvm-cvs-logs] scummvm master -> 55551cfbd510a8e56562faddc4bb4768e3b72d0a

m-kiewitz m_kiewitz at users.sourceforge.net
Mon Jun 8 18:15:49 CEST 2015


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
55551cfbd5 SHERLOCK: 3DO: add comment about ccbFlag bit 5


Commit: 55551cfbd510a8e56562faddc4bb4768e3b72d0a
    https://github.com/scummvm/scummvm/commit/55551cfbd510a8e56562faddc4bb4768e3b72d0a
Author: Martin Kiewitz (m_kiewitz at users.sourceforge.net)
Date: 2015-06-08T18:14:41+02:00

Commit Message:
SHERLOCK: 3DO: add comment about ccbFlag bit 5

Changed paths:
    engines/sherlock/resources.cpp



diff --git a/engines/sherlock/resources.cpp b/engines/sherlock/resources.cpp
index 068e193..8d21512 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)






More information about the Scummvm-git-logs mailing list