fix ecore_animator_pos_map with ACCELERATE; see mail
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Sun, 6 May 2012 12:43:25 +0000 (12:43 +0000)
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Sun, 6 May 2012 12:43:25 +0000 (12:43 +0000)
SVN revision: 70800

legacy/ecore/ChangeLog
legacy/ecore/src/lib/ecore/ecore_anim.c

index 8772d37..82bcfe6 100644 (file)
 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;