aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/sprite.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2015-03-17 08:31:29 -0400
committerPaul Gilbert2015-03-17 08:31:29 -0400
commitec4319923452bebade836b43a912de06958315a6 (patch)
treec38ae5f9a3f7d81129f20937febb255469e60587 /engines/sherlock/sprite.cpp
parent51989953b616c97db4d3d433fffee2ab8395606b (diff)
downloadscummvm-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.cpp3
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());
}
/**