diff options
author | Matthew Hoops | 2011-02-17 13:13:30 -0500 |
---|---|---|
committer | Matthew Hoops | 2011-02-17 13:38:23 -0500 |
commit | 266806d8925330ec0d9e020fafffd74a2cb272e6 (patch) | |
tree | d53d8b4365d819573093fb89262947e62f98d8d7 /engines/sci/graphics/maciconbar.cpp | |
parent | b5d1c669158951d4ea1633d3c10c58729d28fda5 (diff) | |
download | scummvm-rg350-266806d8925330ec0d9e020fafffd74a2cb272e6.tar.gz scummvm-rg350-266806d8925330ec0d9e020fafffd74a2cb272e6.tar.bz2 scummvm-rg350-266806d8925330ec0d9e020fafffd74a2cb272e6.zip |
SCI: Fix Mac icon bar palettes
The Mac icon bar uses a palette from the executable and keeps those entries in the palette constantly.
In addition, we're now performing gamma correction on the Mac-based colors so that they are in the same gamma as SCI. The color matching now works with this and using the same color finding as the Mac Palette Manager.
Diffstat (limited to 'engines/sci/graphics/maciconbar.cpp')
-rw-r--r-- | engines/sci/graphics/maciconbar.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/engines/sci/graphics/maciconbar.cpp b/engines/sci/graphics/maciconbar.cpp index 2ce17ab531..81e863db34 100644 --- a/engines/sci/graphics/maciconbar.cpp +++ b/engines/sci/graphics/maciconbar.cpp @@ -81,11 +81,7 @@ void GfxMacIconBar::remapColors(Graphics::Surface *surf, byte *palette) { byte g = palette[color * 4 + 1]; byte b = palette[color * 4 + 2]; - // For black, make sure the index is 0 - if (r == 0 && g == 0 && b == 0) - *pixels++ = 0; - else - *pixels++ = g_sci->_gfxPalette->kernelFindColor(r, g, b); + *pixels++ = g_sci->_gfxPalette->findMacIconBarColor(r, g, b); } } |