From 78c07b83f8452b89b199a5100910754307551459 Mon Sep 17 00:00:00 2001 From: Denis Kasak Date: Wed, 10 Jun 2009 21:18:14 +0000 Subject: Shifted the palette one bit to the left aft toemake the dragon animation brighter. svn-id: r41439 --- engines/draci/draci.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'engines/draci') diff --git a/engines/draci/draci.cpp b/engines/draci/draci.cpp index e57018087b..980e02b846 100644 --- a/engines/draci/draci.cpp +++ b/engines/draci/draci.cpp @@ -124,12 +124,17 @@ int DraciEngine::go() { palette[6] = readerZ.readByte(); palette[7] = 0; for (unsigned int i = 2; i < 256; ++i) { - // FIXME: Sprite is too dark, add a fixed value as a workaround - palette[i * 4] = readerZ.readByte() + 20; - palette[i * 4 + 1] = readerZ.readByte() + 20; - palette[i * 4 + 2] = readerZ.readByte() + 20; + palette[i * 4] = readerZ.readByte(); + palette[i * 4 + 1] = readerZ.readByte(); + palette[i * 4 + 2] = readerZ.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; + } + _system->setPalette(palette, 0, 256); // Draw a test string -- cgit v1.2.3