From 3cba0098a4990c1c3dedc13979226dacdb170bf4 Mon Sep 17 00:00:00 2001 From: ChunEon Park Date: Wed, 16 Jul 2014 11:20:52 +0900 Subject: [PATCH] transit - fix to adopt the tween_mode factor. ACCELERATE, DECELLERATE, SINUSOIDAL modes didn't work with the tween mode factor before. now it works. @fix --- src/lib/elm_transit.c | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/src/lib/elm_transit.c b/src/lib/elm_transit.c index 6a7b9f6..2e341c3 100644 --- a/src/lib/elm_transit.c +++ b/src/lib/elm_transit.c @@ -344,19 +344,22 @@ _transit_animate_cb(void *data) 0, 0); break; case ELM_TRANSIT_TWEEN_MODE_ACCELERATE: - transit->progress = ecore_animator_pos_map(transit->progress, - ECORE_POS_MAP_ACCELERATE, - transit->v1, 0); + transit->progress = + ecore_animator_pos_map(transit->progress, + ECORE_POS_MAP_ACCELERATE_FACTOR, + transit->v1, 0); break; case ELM_TRANSIT_TWEEN_MODE_DECELERATE: - transit->progress = ecore_animator_pos_map(transit->progress, - ECORE_POS_MAP_DECELERATE, - transit->v1, 0); + transit->progress = + ecore_animator_pos_map(transit->progress, + ECORE_POS_MAP_DECELERATE_FACTOR, + transit->v1, 0); break; case ELM_TRANSIT_TWEEN_MODE_SINUSOIDAL: - transit->progress = ecore_animator_pos_map(transit->progress, - ECORE_POS_MAP_SINUSOIDAL, - transit->v1, 0); + transit->progress = + ecore_animator_pos_map(transit->progress, + ECORE_POS_MAP_SINUSOIDAL_FACTOR, + transit->v1, 0); break; case ELM_TRANSIT_TWEEN_MODE_DIVISOR_INTERP: transit->progress = ecore_animator_pos_map(transit->progress, -- 2.7.4