fix ecore_animator_pos_map with ACCELERATE; see mail

SVN revision: 70800
This commit is contained in:
Mike Blumenkrantz 2012-05-06 12:43:25 +00:00
parent f26251cb4f
commit aeca850bb0
2 changed files with 6 additions and 0 deletions

View File

@ -628,3 +628,8 @@
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

View 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;