diff options
author | Denis Kasak | 2009-06-10 21:28:16 +0000 |
---|---|---|
committer | Denis Kasak | 2009-06-10 21:28:16 +0000 |
commit | 4a9ec62e04d0019161ef2b8e8be9223bb5bf6b21 (patch) | |
tree | 628c561f009eef7edc74493966225532bfbb5623 /engines | |
parent | 78c07b83f8452b89b199a5100910754307551459 (diff) | |
download | scummvm-rg350-4a9ec62e04d0019161ef2b8e8be9223bb5bf6b21.tar.gz scummvm-rg350-4a9ec62e04d0019161ef2b8e8be9223bb5bf6b21.tar.bz2 scummvm-rg350-4a9ec62e04d0019161ef2b8e8be9223bb5bf6b21.zip |
Removed special-casing for the colour black as it's no longer needed.
svn-id: r41440
Diffstat (limited to 'engines')
-rw-r--r-- | engines/draci/draci.cpp | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/engines/draci/draci.cpp b/engines/draci/draci.cpp index 980e02b846..54cb6da154 100644 --- a/engines/draci/draci.cpp +++ b/engines/draci/draci.cpp @@ -113,26 +113,18 @@ int DraciEngine::go() { ar.closeArchive(); ar.openArchive(path); f = ar[0]; - Common::MemoryReadStream readerZ(f->_data, f->_length); + Common::MemoryReadStream paletteReader(f->_data, f->_length); - palette[0] = readerZ.readByte(); - palette[1] = readerZ.readByte(); - palette[2] = readerZ.readByte(); - palette[3] = 0; - palette[4] = readerZ.readByte(); - palette[5] = readerZ.readByte(); - palette[6] = readerZ.readByte(); - palette[7] = 0; - for (unsigned int i = 2; i < 256; ++i) { - palette[i * 4] = readerZ.readByte(); - palette[i * 4 + 1] = readerZ.readByte(); - palette[i * 4 + 2] = readerZ.readByte(); + for (unsigned int i = 0; i < 256; ++i) { + palette[i * 4] = paletteReader.readByte(); + palette[i * 4 + 1] = paletteReader.readByte(); + palette[i * 4 + 2] = paletteReader.readByte(); palette[i * 4 + 3] = 0; } // Shift the palette one bit to the left to make it brighter for (unsigned int i = 0; i < 4 * 256; ++i) { - palette[i] <<= 1; + palette[i] <<= 2; } _system->setPalette(palette, 0, 256); |