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
This commit is contained in:
Kari Salminen 2008-08-21 14:14:33 +00:00
parent 47b1a06e3b
commit d976f8a0fe

View File

@ -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);