aboutsummaryrefslogtreecommitdiff
path: root/engines/cine
diff options
context:
space:
mode:
authorKari Salminen2008-08-21 14:14:33 +0000
committerKari Salminen2008-08-21 14:14:33 +0000
commitd976f8a0fe7f011c873c2629d92ecef846d3d888 (patch)
treef017fbd26e13b3eb414e459495afe50d7bd5d982 /engines/cine
parent47b1a06e3b42da767e5d46529e763cd5e710d263 (diff)
downloadscummvm-rg350-d976f8a0fe7f011c873c2629d92ecef846d3d888.tar.gz
scummvm-rg350-d976f8a0fe7f011c873c2629d92ecef846d3d888.tar.bz2
scummvm-rg350-d976f8a0fe7f011c873c2629d92ecef846d3d888.zip
Fix for bug #2057619: FW: Glitches in title display of demo (regression).
This fix doesn't seem to break other Future Wars versions like r34039 did. Some versions of TITRE.ANI use 15 for transparency color, others use 0. Previously only one of the choices was supported, now both are recognized. svn-id: r34081
Diffstat (limited to 'engines/cine')
-rw-r--r--engines/cine/anim.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/cine/anim.cpp b/engines/cine/anim.cpp
index 0b951579e8..d034469879 100644
--- a/engines/cine/anim.cpp
+++ b/engines/cine/anim.cpp
@@ -585,6 +585,14 @@ int loadAni(const char *resourceName, int16 idx) {
transparentColor = getAnimTransparentColor(resourceName);
+ // TODO: Merge this special case into getAnimTransparentColor somehow.
+ // Versions of TITRE.ANI with height 37 use color 0xF for transparency.
+ // Versions of TITRE.ANI with height 57 use color 0x0 for transparency.
+ // Fixes bug #2057619: FW: Glitches in title display of demo (regression).
+ if (scumm_stricmp(resourceName, "TITRE.ANI") == 0 && animHeader.frameHeight == 37) {
+ transparentColor = 0xF;
+ }
+
entry = idx < 0 ? emptyAnimSpace() : idx;
assert(entry >= 0);