diff options
author | Paul Gilbert | 2015-03-17 08:31:29 -0400 |
---|---|---|
committer | Paul Gilbert | 2015-03-17 08:31:29 -0400 |
commit | ec4319923452bebade836b43a912de06958315a6 (patch) | |
tree | c38ae5f9a3f7d81129f20937febb255469e60587 /engines/sherlock/screen.cpp | |
parent | 51989953b616c97db4d3d433fffee2ab8395606b (diff) | |
download | scummvm-rg350-ec4319923452bebade836b43a912de06958315a6.tar.gz scummvm-rg350-ec4319923452bebade836b43a912de06958315a6.tar.bz2 scummvm-rg350-ec4319923452bebade836b43a912de06958315a6.zip |
SHERLOCK: Convert 6-bit palettes to 8-bit VGA palettes
Diffstat (limited to 'engines/sherlock/screen.cpp')
-rw-r--r-- | engines/sherlock/screen.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sherlock/screen.cpp b/engines/sherlock/screen.cpp index 6dcb37c448..500abc1197 100644 --- a/engines/sherlock/screen.cpp +++ b/engines/sherlock/screen.cpp @@ -79,10 +79,10 @@ int Screen::equalizePalette(const byte palette[PALETTE_SIZE]) { for (int idx = 0; idx < PALETTE_SIZE; ++idx) { if (tempPalette[idx] > palette[idx]) { - --tempPalette[idx]; + tempPalette[idx] = MAX((int)palette[idx], (int)tempPalette[idx] - 4); ++total; } else if (tempPalette[idx] < palette[idx]) { - ++tempPalette[idx]; + tempPalette[idx] = MIN((int)palette[idx], (int)tempPalette[idx] + 4); ++total; } } |