diff options
author | Johannes Schickel | 2011-02-13 15:44:01 +0100 |
---|---|---|
committer | Johannes Schickel | 2011-02-14 17:08:32 +0100 |
commit | 5d9e69146cef195c0b94e528bfc0a608956f34e3 (patch) | |
tree | 7cc8bb28c193a6dd0377473e3c7d7854d3733f6d /engines/groovie/vdx.cpp | |
parent | 04d4162357d4de5f29ba65e6c373c0304a0cad6d (diff) | |
download | scummvm-rg350-5d9e69146cef195c0b94e528bfc0a608956f34e3.tar.gz scummvm-rg350-5d9e69146cef195c0b94e528bfc0a608956f34e3.tar.bz2 scummvm-rg350-5d9e69146cef195c0b94e528bfc0a608956f34e3.zip |
GROOVIE: Adapt to setPalette/grabPalette RGBA->RGB change.
Diffstat (limited to 'engines/groovie/vdx.cpp')
-rw-r--r-- | engines/groovie/vdx.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/engines/groovie/vdx.cpp b/engines/groovie/vdx.cpp index 10177dad34..1b4a2b7800 100644 --- a/engines/groovie/vdx.cpp +++ b/engines/groovie/vdx.cpp @@ -555,15 +555,8 @@ void VDXPlayer::setPalette(uint8 *palette) { if (_flagSkipPalette) return; - uint8 palBuf[4 * 256]; debugC(7, kGroovieDebugVideo | kGroovieDebugAll, "Groovie::VDX: Setting palette"); - for (int i = 0; i < 256; i++) { - palBuf[(i * 4) + 0] = palette[(i * 3) + 0]; - palBuf[(i * 4) + 1] = palette[(i * 3) + 1]; - palBuf[(i * 4) + 2] = palette[(i * 3) + 2]; - palBuf[(i * 4) + 3] = 0; - } - _syst->getPaletteManager()->setPalette(palBuf, 0, 256); + _syst->getPaletteManager()->setPalette(palette, 0, 256); } } // End of Groovie namespace |