[Scummvm-cvs-logs] scummvm master -> 65f54c227f8d296acb819c2420bd10f26222457e
bluegr
bluegr at gmail.com
Fri Jan 8 14:58:52 CET 2016
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
65f54c227f SCI: *Really* fix the logic in applyFade()
Commit: 65f54c227f8d296acb819c2420bd10f26222457e
https://github.com/scummvm/scummvm/commit/65f54c227f8d296acb819c2420bd10f26222457e
Author: Filippos Karapetis (bluegr at gmail.com)
Date: 2016-01-08T15:58:10+02:00
Commit Message:
SCI: *Really* fix the logic in applyFade()
Thanks wjp
Changed paths:
engines/sci/graphics/palette32.cpp
diff --git a/engines/sci/graphics/palette32.cpp b/engines/sci/graphics/palette32.cpp
index bf5e9b3..f7bf61f 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;
}
}
More information about the Scummvm-git-logs
mailing list