summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChunEon Park <hermet@hermet.pe.kr>2014-07-16 11:20:52 +0900
committerChunEon Park <hermet@hermet.pe.kr>2014-07-16 11:24:37 +0900
commit98b8166f34b8d0ab84856db08460f64e07f7ac0f (patch)
tree7219a89ca45cbe4c4804a3c7cb6a2634c96a07e3
parent7bc39e2b484f2638d820d420d348528a3b85c319 (diff)
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
-rw-r--r--src/lib/elm_transit.c21
1 files changed, 12 insertions, 9 deletions
diff --git a/src/lib/elm_transit.c b/src/lib/elm_transit.c
index 6a7b9f639..2e341c392 100644
--- a/src/lib/elm_transit.c
+++ b/src/lib/elm_transit.c
@@ -344,19 +344,22 @@ _transit_animate_cb(void *data)
344 0, 0); 344 0, 0);
345 break; 345 break;
346 case ELM_TRANSIT_TWEEN_MODE_ACCELERATE: 346 case ELM_TRANSIT_TWEEN_MODE_ACCELERATE:
347 transit->progress = ecore_animator_pos_map(transit->progress, 347 transit->progress =
348 ECORE_POS_MAP_ACCELERATE, 348 ecore_animator_pos_map(transit->progress,
349 transit->v1, 0); 349 ECORE_POS_MAP_ACCELERATE_FACTOR,
350 transit->v1, 0);
350 break; 351 break;
351 case ELM_TRANSIT_TWEEN_MODE_DECELERATE: 352 case ELM_TRANSIT_TWEEN_MODE_DECELERATE:
352 transit->progress = ecore_animator_pos_map(transit->progress, 353 transit->progress =
353 ECORE_POS_MAP_DECELERATE, 354 ecore_animator_pos_map(transit->progress,
354 transit->v1, 0); 355 ECORE_POS_MAP_DECELERATE_FACTOR,
356 transit->v1, 0);
355 break; 357 break;
356 case ELM_TRANSIT_TWEEN_MODE_SINUSOIDAL: 358 case ELM_TRANSIT_TWEEN_MODE_SINUSOIDAL:
357 transit->progress = ecore_animator_pos_map(transit->progress, 359 transit->progress =
358 ECORE_POS_MAP_SINUSOIDAL, 360 ecore_animator_pos_map(transit->progress,
359 transit->v1, 0); 361 ECORE_POS_MAP_SINUSOIDAL_FACTOR,
362 transit->v1, 0);
360 break; 363 break;
361 case ELM_TRANSIT_TWEEN_MODE_DIVISOR_INTERP: 364 case ELM_TRANSIT_TWEEN_MODE_DIVISOR_INTERP:
362 transit->progress = ecore_animator_pos_map(transit->progress, 365 transit->progress = ecore_animator_pos_map(transit->progress,