You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pivot.apache.org by sm...@apache.org on 2009/08/04 17:52:16 UTC

svn commit: r800855 - /incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/effects/easing/Exponential.java

Author: smartini
Date: Tue Aug  4 15:52:16 2009
New Revision: 800855

URL: http://svn.apache.org/viewvc?rev=800855&view=rev
Log:
Dead local store: 
change --time to (time - 1)

Modified:
    incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/effects/easing/Exponential.java

Modified: incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/effects/easing/Exponential.java
URL: http://svn.apache.org/viewvc/incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/effects/easing/Exponential.java?rev=800855&r1=800854&r2=800855&view=diff
==============================================================================
--- incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/effects/easing/Exponential.java (original)
+++ incubator/pivot/trunk/wtk/src/org/apache/pivot/wtk/effects/easing/Exponential.java Tue Aug  4 15:52:16 2009
@@ -43,9 +43,9 @@
         }
 
         if ((time /= duration / 2f) < 1) {
-            return change / 2f * (float)Math.pow(2, 10 * (time - 1)) + begin;
+            return change / 2f * (float) Math.pow(2, 10 * (time - 1)) + begin;
         }
 
-        return change / 2f * ((float)-Math.pow(2, -10 * --time) + 2) + begin;
+        return change / 2f * ((float) - Math.pow(2, -10 * (time - 1)) + 2) + begin;
     }
 }