From d88354a8533c36c4187ba856807a488e3b53981f Mon Sep 17 00:00:00 2001 From: Gregory Montoir Date: Wed, 25 Jul 2007 20:05:35 +0000 Subject: renamed wrongly named parameter svn-id: r28201 --- engines/touche/touche.cpp | 4 ++-- engines/touche/touche.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'engines/touche') diff --git a/engines/touche/touche.cpp b/engines/touche/touche.cpp index fce2c8ed1b..086671d371 100644 --- a/engines/touche/touche.cpp +++ b/engines/touche/touche.cpp @@ -869,11 +869,11 @@ void ToucheEngine::redrawRoom() { } } -void ToucheEngine::fadePalette(int firstColor, int lastColor, int scale, int scaleInc, int fadingStepsCount) { +void ToucheEngine::fadePalette(int firstColor, int colorCount, int scale, int scaleInc, int fadingStepsCount) { for (int i = 0; i < fadingStepsCount; ++i) { scale += scaleInc; scale = CLIP(scale, 0, 255); - setPalette(firstColor, lastColor, scale, scale, scale); + setPalette(firstColor, colorCount, scale, scale, scale); _system->updateScreen(); _system->delayMillis(10); } diff --git a/engines/touche/touche.h b/engines/touche/touche.h index ed346cd3b9..5aef0ef613 100644 --- a/engines/touche/touche.h +++ b/engines/touche/touche.h @@ -390,7 +390,7 @@ protected: void centerScreenToKeyChar(int keyChar); void waitForKeyCharsSet(); void redrawRoom(); - void fadePalette(int firstColor, int lastColor, int scale, int scaleInc, int fadingStepsCount); + void fadePalette(int firstColor, int colorCount, int scale, int scaleInc, int fadingStepsCount); void fadePaletteFromFlags(); void moveKeyChar(uint8 *dst, int dstPitch, KeyChar *key); void changeKeyCharFrame(KeyChar *key, int keyChar); -- cgit v1.2.3