aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Kasak2009-06-10 21:18:14 +0000
committerDenis Kasak2009-06-10 21:18:14 +0000
commit78c07b83f8452b89b199a5100910754307551459 (patch)
treec753dc6410c24ead278bbd2c359303d92bdea8ed
parentb91f93716a7da1721a552e3ccc979fe2170f9bd0 (diff)
downloadscummvm-rg350-78c07b83f8452b89b199a5100910754307551459.tar.gz
scummvm-rg350-78c07b83f8452b89b199a5100910754307551459.tar.bz2
scummvm-rg350-78c07b83f8452b89b199a5100910754307551459.zip
Shifted the palette one bit to the left aft toemake the dragon animation brighter.
svn-id: r41439
-rw-r--r--engines/draci/draci.cpp13
1 files changed, 9 insertions, 4 deletions
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