diff options
author | Kari Salminen | 2008-08-21 14:14:33 +0000 |
---|---|---|
committer | Kari Salminen | 2008-08-21 14:14:33 +0000 |
commit | d976f8a0fe7f011c873c2629d92ecef846d3d888 (patch) | |
tree | f017fbd26e13b3eb414e459495afe50d7bd5d982 | |
parent | 47b1a06e3b42da767e5d46529e763cd5e710d263 (diff) | |
download | scummvm-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
-rw-r--r-- | engines/cine/anim.cpp | 8 |
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); |