diff options
author | Martin Kiewitz | 2015-11-24 15:58:19 +0100 |
---|---|---|
committer | Martin Kiewitz | 2015-11-24 15:58:19 +0100 |
commit | 85ebe4c8e0ceab6bf3177add007ae1278586df3c (patch) | |
tree | 834de2edb89ab04842b62887ca0135d6311e751b | |
parent | d69ffaa0e4507c7c5761bd020dc3beac4d85a977 (diff) | |
download | scummvm-rg350-85ebe4c8e0ceab6bf3177add007ae1278586df3c.tar.gz scummvm-rg350-85ebe4c8e0ceab6bf3177add007ae1278586df3c.tar.bz2 scummvm-rg350-85ebe4c8e0ceab6bf3177add007ae1278586df3c.zip |
ACCESS: movie player: 6-bit palette to 8-bit
adjust palette accordingly
-rw-r--r-- | engines/access/video/movie_decoder.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/access/video/movie_decoder.cpp b/engines/access/video/movie_decoder.cpp index 78b7a33fd0..c67dac6379 100644 --- a/engines/access/video/movie_decoder.cpp +++ b/engines/access/video/movie_decoder.cpp @@ -619,10 +619,11 @@ bool AccessVIDMovieDecoder::StreamVideoTrack::skipOverPalette(Common::SeekableRe void AccessVIDMovieDecoder::StreamVideoTrack::decodePalette(Common::SeekableReadStream *stream) { assert(stream); + // VID files use a 6-bit palette and not a 8-bit one, we change it to 8-bit for (uint16 curColor = 0; curColor < 256; curColor++) { - _palette[curColor * 3] = stream->readByte(); - _palette[curColor * 3 + 1] = stream->readByte(); - _palette[curColor * 3 + 2] = stream->readByte(); + _palette[curColor * 3] = stream->readByte() << 2; + _palette[curColor * 3 + 1] = stream->readByte() << 2; + _palette[curColor * 3 + 2] = stream->readByte() << 2; } _dirtyPalette = true; |