fix ecore_animator_pos_map with ACCELERATE; see mail
authordiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 6 May 2012 12:43:25 +0000 (12:43 +0000)
committerdiscomfitor <discomfitor@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 6 May 2012 12:43:25 +0000 (12:43 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@70800 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

ChangeLog
src/lib/ecore/ecore_anim.c

index 8772d37..82bcfe6 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
 2012-04-26 Carsten Haitzler (The Rasterman)
 
         1.2.0 release
+
+2012-05-06  Mike Blumenkrantz
+
+        Fix bug in ecore_animator_pos_map where final frame is never
+        reached when using ECORE_POS_MAP_ACCELERATE
index 4ced67a..f1a4d0d 100644 (file)
@@ -274,6 +274,7 @@ ecore_animator_pos_map(double        pos,
          return pos;
 
        case ECORE_POS_MAP_ACCELERATE:
+         if (pos == 1.0) return 1.0;
          pos = 1.0 - _pos_map_sin(M_PI_2 + pos * M_PI_2);
          return pos;