diff options
author | Filippos Karapetis | 2016-01-08 15:58:10 +0200 |
---|---|---|
committer | Filippos Karapetis | 2016-01-08 15:58:10 +0200 |
commit | 65f54c227f8d296acb819c2420bd10f26222457e (patch) | |
tree | 2fb79b50353fac84a979704ce60635efd132f7b9 /engines | |
parent | 04f372f004057c0d92d10a0f5f6616b5357a5b0d (diff) | |
download | scummvm-rg350-65f54c227f8d296acb819c2420bd10f26222457e.tar.gz scummvm-rg350-65f54c227f8d296acb819c2420bd10f26222457e.tar.bz2 scummvm-rg350-65f54c227f8d296acb819c2420bd10f26222457e.zip |
SCI: *Really* fix the logic in applyFade()
Thanks wjp
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/graphics/palette32.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/engines/sci/graphics/palette32.cpp b/engines/sci/graphics/palette32.cpp index bf5e9b3c2a..f7bf61fbec 100644 --- a/engines/sci/graphics/palette32.cpp +++ b/engines/sci/graphics/palette32.cpp @@ -320,9 +320,9 @@ void GfxPalette32::applyFade() { // TODO: Create and update a _nextPalette, not a single _sysPalette, to // conform to the way the actual SCI32 engine works (writes to a // next-frame-palette and then copies to the current palette on frameout) - _sysPalette.colors->r *= _fadeTable[i] / 100; - _sysPalette.colors->g *= _fadeTable[i] / 100; - _sysPalette.colors->b *= _fadeTable[i] / 100; + _sysPalette.colors[i].r *= _fadeTable[i] / 100; + _sysPalette.colors[i].g *= _fadeTable[i] / 100; + _sysPalette.colors[i].b *= _fadeTable[i] / 100; } } |