[Scummvm-cvs-logs] SF.net SVN: scummvm: [28201] scummvm/trunk/engines/touche

cyx at users.sourceforge.net cyx at users.sourceforge.net
Wed Jul 25 22:05:36 CEST 2007


Revision: 28201
          http://scummvm.svn.sourceforge.net/scummvm/?rev=28201&view=rev
Author:   cyx
Date:     2007-07-25 13:05:35 -0700 (Wed, 25 Jul 2007)

Log Message:
-----------
renamed wrongly named parameter

Modified Paths:
--------------
    scummvm/trunk/engines/touche/touche.cpp
    scummvm/trunk/engines/touche/touche.h

Modified: scummvm/trunk/engines/touche/touche.cpp
===================================================================
--- scummvm/trunk/engines/touche/touche.cpp	2007-07-25 20:03:31 UTC (rev 28200)
+++ scummvm/trunk/engines/touche/touche.cpp	2007-07-25 20:05:35 UTC (rev 28201)
@@ -869,11 +869,11 @@
 	}
 }
 
-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);
 	}

Modified: scummvm/trunk/engines/touche/touche.h
===================================================================
--- scummvm/trunk/engines/touche/touche.h	2007-07-25 20:03:31 UTC (rev 28200)
+++ scummvm/trunk/engines/touche/touche.h	2007-07-25 20:05:35 UTC (rev 28201)
@@ -390,7 +390,7 @@
 	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);


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list