scummvm/scummvm — pull request #115 by criezy (2011-11-08 21:46:46+00:00)
Title: SWORD1: Use color for subtitles during cutscene

During the game, different colors are used for subtitles depending which character is speaking. This commit tries to use the same colors for the cutscene subtitles (the idea was suggested by SimSaw).

The character (i.e. color to use) has to be specified in the subtitle text file between the end frame and the start of text using @1, @2, @3 or @4 (for George, George as a narrator, Nicole and Maguire respectively). For example the last line of the intro French subtitle becomes:
196 212 @2 ...et de mort.

Because the video use a 256 color palette, the code look for the closest color available each time the palette changes and use that. It also means the subtitle color for a character can change during the cutscene (see for example the ferrari cutscene).

I am not sure this commit is a good idea nor that the approach is the best one which is why I am opening this pull request so that it can be discussed.