summaryrefslogtreecommitdiff
path: root/src/lib/edje/edje_embryo.c
diff options
context:
space:
mode:
authorOtavio Pontes <otavio@profusion.mobi>2013-12-02 14:59:43 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2013-12-02 15:02:40 +0900
commitafd8a238d199a90e95a826c31a091e9adb11cc1e (patch)
tree5a91790c9133be4139f31d57515b3a8f4a806828 /src/lib/edje/edje_embryo.c
parent0b605c5daad9dd4934f9f0a4ae3ce2c00aadf63c (diff)
Adding the cubic-bezier curve to edje transitions
Summary: Adding an option to use a cubic-bezier curve in edje transitions. Reviewers: Sachiel, cedric, raster Reviewed By: raster CC: raster Differential Revision: https://phab.enlightenment.org/D319
Diffstat (limited to 'src/lib/edje/edje_embryo.c')
-rw-r--r--src/lib/edje/edje_embryo.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lib/edje/edje_embryo.c b/src/lib/edje/edje_embryo.c
index a57fd992c9..9283b44333 100644
--- a/src/lib/edje/edje_embryo.c
+++ b/src/lib/edje/edje_embryo.c
@@ -955,7 +955,8 @@ _edje_embryo_fn_set_state(Embryo_Program *ep, Embryo_Cell *params)
955 { 955 {
956 if (rp->program) _edje_program_end(ed, rp->program); 956 if (rp->program) _edje_program_end(ed, rp->program);
957 _edje_part_description_apply(ed, rp, state, value, NULL, 0.0); 957 _edje_part_description_apply(ed, rp, state, value, NULL, 0.0);
958 _edje_part_pos_set(ed, rp, EDJE_TWEEN_MODE_LINEAR, ZERO, ZERO, ZERO); 958 _edje_part_pos_set(ed, rp, EDJE_TWEEN_MODE_LINEAR, ZERO, ZERO, ZERO,
959 ZERO, ZERO);
959 _edje_recalc(ed); 960 _edje_recalc(ed);
960 } 961 }
961 return 0; 962 return 0;
@@ -1037,7 +1038,8 @@ _edje_embryo_fn_set_tween_state(Embryo_Program *ep, Embryo_Cell *params)
1037 { 1038 {
1038 if (rp->program) _edje_program_end(ed, rp->program); 1039 if (rp->program) _edje_program_end(ed, rp->program);
1039 _edje_part_description_apply(ed, rp, state1, value1, state2, value2); 1040 _edje_part_description_apply(ed, rp, state1, value1, state2, value2);
1040 _edje_part_pos_set(ed, rp, EDJE_TWEEN_MODE_LINEAR, FROM_DOUBLE(tween), ZERO, ZERO); 1041 _edje_part_pos_set(ed, rp, EDJE_TWEEN_MODE_LINEAR, FROM_DOUBLE(tween),
1042 ZERO, ZERO, ZERO, ZERO);
1041 _edje_recalc(ed); 1043 _edje_recalc(ed);
1042 } 1044 }
1043 return 0; 1045 return 0;