diff options
author | Kari Salminen | 2008-11-18 19:54:44 +0000 |
---|---|---|
committer | Kari Salminen | 2008-11-18 19:54:44 +0000 |
commit | 089c8b4e48e8dd29ce7d839f6e87f12937478081 (patch) | |
tree | f3906d7bd2a41d2981d18807e3fcd08e1188c9e7 /engines/cine/pal.cpp | |
parent | 48e1316da9b712568e762d8513f73ce34bff90bc (diff) | |
download | scummvm-rg350-089c8b4e48e8dd29ce7d839f6e87f12937478081.tar.gz scummvm-rg350-089c8b4e48e8dd29ce7d839f6e87f12937478081.tar.bz2 scummvm-rg350-089c8b4e48e8dd29ce7d839f6e87f12937478081.zip |
Make the 256 color transformPaletteRange-function and Future Wars's refreshPalette-function compliant with disassembly.
svn-id: r35118
Diffstat (limited to 'engines/cine/pal.cpp')
-rw-r--r-- | engines/cine/pal.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/cine/pal.cpp b/engines/cine/pal.cpp index 7f6307c640..910ed4735a 100644 --- a/engines/cine/pal.cpp +++ b/engines/cine/pal.cpp @@ -155,9 +155,9 @@ void transformPaletteRange(byte *dstPal, byte *srcPal, int startColor, int stopC assert(srcPal && dstPal); for (int i = startColor; i <= stopColor; i++) { - dstPal[3 * i + 0] = CLIP(srcPal[3 * i + 0] + r * 32, 0, 255); - dstPal[3 * i + 1] = CLIP(srcPal[3 * i + 1] + g * 32, 0, 255); - dstPal[3 * i + 2] = CLIP(srcPal[3 * i + 2] + b * 32, 0, 255); + dstPal[3 * i + 0] = CLIP(srcPal[3 * i + 0] + r * 36, 0, 252); + dstPal[3 * i + 1] = CLIP(srcPal[3 * i + 1] + g * 36, 0, 252); + dstPal[3 * i + 2] = CLIP(srcPal[3 * i + 2] + b * 36, 0, 252); } } |