[Scummvm-cvs-logs] scummvm master -> 52541fc2579ae58823f31e1eadb2a860f87148de

wjp wjp at usecode.org
Fri Jul 12 21:18:32 CEST 2013


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:
52541fc257 TUCKER: Fix palette fades


Commit: 52541fc2579ae58823f31e1eadb2a860f87148de
    https://github.com/scummvm/scummvm/commit/52541fc2579ae58823f31e1eadb2a860f87148de
Author: Willem Jan Palenstijn (wjp at usecode.org)
Date: 2013-07-12T12:17:40-07:00

Commit Message:
TUCKER: Fix palette fades

This is a regression from 362b0cd5e4a71a0b2610ff8abb6aeecddc842cf0
and fixes bug #3614686.

Changed paths:
    engines/tucker/tucker.cpp



diff --git a/engines/tucker/tucker.cpp b/engines/tucker/tucker.cpp
index 2bd7c47..6b538a6 100644
--- a/engines/tucker/tucker.cpp
+++ b/engines/tucker/tucker.cpp
@@ -941,7 +941,7 @@ void TuckerEngine::fadeOutPalette(int colorsCount) {
 	_system->getPaletteManager()->grabPalette(pal, 0, colorsCount);
 	for (int color = 0; color < colorsCount; ++color) {
 		for (int i = 0; i < 3; ++i) {
-			const int c = int(pal[color * 3 + i]) + kFadePaletteStep * 3;
+			const int c = int(pal[color * 3 + i]) + kFadePaletteStep * 4;
 			pal[color * 3 + i] = MIN<int>(c, _currentPalette[color * 3 + i]);
 		}
 	}
@@ -954,7 +954,7 @@ void TuckerEngine::fadeInPalette(int colorsCount) {
 	_system->getPaletteManager()->grabPalette(pal, 0, colorsCount);
 	for (int color = 0; color < colorsCount; ++color) {
 		for (int i = 0; i < 3; ++i) {
-			const int c = int(pal[color * 3 + i]) - kFadePaletteStep * 3;
+			const int c = int(pal[color * 3 + i]) - kFadePaletteStep * 4;
 			pal[color * 3 + i] = MAX<int>(c, 0);
 		}
 	}






More information about the Scummvm-git-logs mailing list