diff options
Diffstat (limited to 'engines/scumm/palette.cpp')
-rw-r--r-- | engines/scumm/palette.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/engines/scumm/palette.cpp b/engines/scumm/palette.cpp index 6d6c499462..4214ab2330 100644 --- a/engines/scumm/palette.cpp +++ b/engines/scumm/palette.cpp @@ -811,12 +811,16 @@ void ScummEngine_v8::desaturatePalette(int hueScale, int satScale, int lightScal int ScummEngine::remapPaletteColor(int r, int g, int b, int threshold) { - int i; - int ar, ag, ab; + byte *pal; + int ar, ag, ab, i; uint sum, bestsum, bestitem = 0; int startColor = (_game.version == 8) ? 24 : 1; - byte *pal = _currentPalette + startColor * 3; + + if (_game.heversion >= 99) + pal = _hePalettes + 1024 + startColor * 3; + else + pal = _currentPalette + startColor * 3; if (r > 255) r = 255; |