diff options
author | Gregory Montoir | 2007-07-25 20:05:35 +0000 |
---|---|---|
committer | Gregory Montoir | 2007-07-25 20:05:35 +0000 |
commit | d88354a8533c36c4187ba856807a488e3b53981f (patch) | |
tree | 2df3a6ccd1033be3ac52bcb819e826051dadda24 | |
parent | 12bec1c4948760aabaa1c8f83f731f9bfc88903d (diff) | |
download | scummvm-rg350-d88354a8533c36c4187ba856807a488e3b53981f.tar.gz scummvm-rg350-d88354a8533c36c4187ba856807a488e3b53981f.tar.bz2 scummvm-rg350-d88354a8533c36c4187ba856807a488e3b53981f.zip |
renamed wrongly named parameter
svn-id: r28201
-rw-r--r-- | engines/touche/touche.cpp | 4 | ||||
-rw-r--r-- | engines/touche/touche.h | 2 |
2 files changed, 3 insertions, 3 deletions
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); |