diff options
author | Matthew Hoops | 2011-02-20 00:45:59 -0500 |
---|---|---|
committer | Matthew Hoops | 2011-02-20 00:45:59 -0500 |
commit | 5091f846a78c82d619b41530ff670de04bc05387 (patch) | |
tree | 8071ff0e1f4029cdfdd1b20ecd994b183f6b9a90 /engines | |
parent | 098581b3b5ec22f2e50075414f74f378ad24c2ae (diff) | |
download | scummvm-rg350-5091f846a78c82d619b41530ff670de04bc05387.tar.gz scummvm-rg350-5091f846a78c82d619b41530ff670de04bc05387.tar.bz2 scummvm-rg350-5091f846a78c82d619b41530ff670de04bc05387.zip |
GRAPHICS: Switch PICT's palette from RGBA to RGB
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/graphics/maciconbar.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engines/sci/graphics/maciconbar.cpp b/engines/sci/graphics/maciconbar.cpp index 77491aa995..d6251641a3 100644 --- a/engines/sci/graphics/maciconbar.cpp +++ b/engines/sci/graphics/maciconbar.cpp @@ -45,7 +45,7 @@ void GfxMacIconBar::addIcon(reg_t obj) { void GfxMacIconBar::drawIcons() { // Draw the icons to the bottom of the screen - byte *pal = new byte[256 * 4]; + byte *pal = new byte[256 * 3]; Graphics::PictDecoder *pict = new Graphics::PictDecoder(Graphics::PixelFormat::createFormatCLUT8()); uint32 lastX = 0; @@ -79,9 +79,9 @@ void GfxMacIconBar::remapColors(Graphics::Surface *surf, byte *palette) { for (uint16 i = 0; i < surf->w * surf->h; i++) { byte color = *pixels; - byte r = palette[color * 4]; - byte g = palette[color * 4 + 1]; - byte b = palette[color * 4 + 2]; + byte r = palette[color * 3]; + byte g = palette[color * 3 + 1]; + byte b = palette[color * 3 + 2]; *pixels++ = g_sci->_gfxPalette->findMacIconBarColor(r, g, b); } |