From 65f54c227f8d296acb819c2420bd10f26222457e Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Fri, 8 Jan 2016 15:58:10 +0200 Subject: SCI: *Really* fix the logic in applyFade() Thanks wjp --- engines/sci/graphics/palette32.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'engines') 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; } } -- cgit v1.2.3