diff options
author | Paul Gilbert | 2014-03-15 17:38:44 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-03-15 17:38:44 -0400 |
commit | 10124f6806150aad409f6db9a6c7a60afcb44872 (patch) | |
tree | 3e9b0f09e6d72474e1a4721994c17f14351e4185 /engines/mads/palette.cpp | |
parent | e00a1b88ca7500516d78f4bad515b5a558af82a6 (diff) | |
download | scummvm-rg350-10124f6806150aad409f6db9a6c7a60afcb44872.tar.gz scummvm-rg350-10124f6806150aad409f6db9a6c7a60afcb44872.tar.bz2 scummvm-rg350-10124f6806150aad409f6db9a6c7a60afcb44872.zip |
MADS: Implemented scene 103 setup and needed support methods
Diffstat (limited to 'engines/mads/palette.cpp')
-rw-r--r-- | engines/mads/palette.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/mads/palette.cpp b/engines/mads/palette.cpp index 8f803d109f..d7301bb369 100644 --- a/engines/mads/palette.cpp +++ b/engines/mads/palette.cpp @@ -386,9 +386,9 @@ void Palette::setPalette(const byte *colors, uint start, uint num) { } void Palette::setEntry(byte palIndex, byte r, byte g, byte b) { - _mainPalette[palIndex * 3] = r; - _mainPalette[palIndex * 3 + 1] = g; - _mainPalette[palIndex * 3 + 2] = b; + _mainPalette[palIndex * 3] = VGA_COLOR_TRANS(r); + _mainPalette[palIndex * 3 + 1] = VGA_COLOR_TRANS(g); + _mainPalette[palIndex * 3 + 2] = VGA_COLOR_TRANS(b); setPalette((const byte *)&_mainPalette[palIndex * 3], palIndex, 1); } |