diff options
author | Paul Gilbert | 2014-04-20 11:08:25 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-04-20 11:08:25 -0400 |
commit | 9d25832a8106478eed9a1b581043c6ae16fc4f5c (patch) | |
tree | 68a0f295c5100fe4afa51102c30341328195540c /engines | |
parent | a05f3fef9eb03a0616c602afa4e80ea2e5bb2f92 (diff) | |
download | scummvm-rg350-9d25832a8106478eed9a1b581043c6ae16fc4f5c.tar.gz scummvm-rg350-9d25832a8106478eed9a1b581043c6ae16fc4f5c.tar.bz2 scummvm-rg350-9d25832a8106478eed9a1b581043c6ae16fc4f5c.zip |
MADS: Fix color of on-screen text
Diffstat (limited to 'engines')
-rw-r--r-- | engines/mads/palette.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/engines/mads/palette.cpp b/engines/mads/palette.cpp index 4a3ea04434..d6cf652760 100644 --- a/engines/mads/palette.cpp +++ b/engines/mads/palette.cpp @@ -120,7 +120,7 @@ int PaletteUsage::process(Common::Array<RGB6> &palette, uint flags) { } int freeIndex; - int palCount = tempUsage.getGamePalFreeIndex(&freeIndex); + int palCount = getGamePalFreeIndex(&freeIndex); Common::Array<UsageRange> palRange; for (uint palIndex = 0; palIndex < palette.size(); ++palIndex) { @@ -437,16 +437,14 @@ void Palette::resetGamePalette(int lowRange, int highRange) { Common::fill((byte *)&_palFlags[0], (byte *)&_palFlags[PALETTE_COUNT], 0); initVGAPalette(_mainPalette); - // Init low range to common RGB values + // Reserve the start of the palette for things like on-screen text if (lowRange) { - Common::fill(&_palFlags[0], &_palFlags[lowRange - 1], 1); + Common::fill(&_palFlags[0], &_palFlags[lowRange], 1); } - // Init high range to common RGB values + // Reserve the high end of the palette for dialog display if (highRange) { - _palFlags[255] = 1; - - Common::fill(&_palFlags[256 - highRange], &_palFlags[254], _palFlags[255]); + Common::fill(&_palFlags[256 - highRange], &_palFlags[256], 1); } _rgbList.clear(); |