diff options
author | Paul Gilbert | 2015-03-17 08:31:29 -0400 |
---|---|---|
committer | Paul Gilbert | 2015-03-17 08:31:29 -0400 |
commit | ec4319923452bebade836b43a912de06958315a6 (patch) | |
tree | c38ae5f9a3f7d81129f20937febb255469e60587 /engines/sherlock/sprite.cpp | |
parent | 51989953b616c97db4d3d433fffee2ab8395606b (diff) | |
download | scummvm-rg350-ec4319923452bebade836b43a912de06958315a6.tar.gz scummvm-rg350-ec4319923452bebade836b43a912de06958315a6.tar.bz2 scummvm-rg350-ec4319923452bebade836b43a912de06958315a6.zip |
SHERLOCK: Convert 6-bit palettes to 8-bit VGA palettes
Diffstat (limited to 'engines/sherlock/sprite.cpp')
-rw-r--r-- | engines/sherlock/sprite.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/sherlock/sprite.cpp b/engines/sherlock/sprite.cpp index ca70932155..be5a0e0d27 100644 --- a/engines/sherlock/sprite.cpp +++ b/engines/sherlock/sprite.cpp @@ -85,7 +85,8 @@ void Sprite::loadPalette(Common::SeekableReadStream &stream) { assert((size - 12) == PALETTE_SIZE); stream.seek(4 + 12, SEEK_CUR); - stream.read(&_palette[0], PALETTE_SIZE); + for (int idx = 0; idx < PALETTE_SIZE; ++idx) + _palette[idx] = VGA_COLOR_TRANS(stream.readByte()); } /** |