mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
MADE: Fix palette fade in/out
The final palette wasn't set so, for instance, at the beginning of the RTZ intro the Infocom logo wouldn't completely fade to back. I think this is the correcet fix for that.
This commit is contained in:
@@ -201,7 +201,7 @@ void ScreenEffects::startBlendedPalette(byte *palette, byte *newPalette, int col
|
||||
}
|
||||
|
||||
void ScreenEffects::stepBlendedPalette() {
|
||||
if (_blendedPaletteStatus._active && _blendedPaletteStatus._value < _blendedPaletteStatus._maxValue) {
|
||||
if (_blendedPaletteStatus._active && _blendedPaletteStatus._value <= _blendedPaletteStatus._maxValue) {
|
||||
setBlendedPalette(_blendedPaletteStatus._palette, _blendedPaletteStatus._newPalette,
|
||||
_blendedPaletteStatus._colorCount, _blendedPaletteStatus._value, _blendedPaletteStatus._maxValue);
|
||||
if (_blendedPaletteStatus._value == _blendedPaletteStatus._maxValue)
|
||||
|
||||
Reference in New Issue
Block a user