aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/touche/touche.cpp4
-rw-r--r--engines/touche/touche.h2
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);