summaryrefslogtreecommitdiff
path: root/src/lib/ecore/efl_accelerate_interpolator.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ecore/efl_accelerate_interpolator.c')
-rw-r--r--src/lib/ecore/efl_accelerate_interpolator.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/ecore/efl_accelerate_interpolator.c b/src/lib/ecore/efl_accelerate_interpolator.c
index 917c032..b2e1032 100644
--- a/src/lib/ecore/efl_accelerate_interpolator.c
+++ b/src/lib/ecore/efl_accelerate_interpolator.c
@@ -11,7 +11,7 @@ typedef struct _Efl_Accelerate_Interpolator_Data Efl_Accelerate_Interpolator_Dat
11 11
12struct _Efl_Accelerate_Interpolator_Data 12struct _Efl_Accelerate_Interpolator_Data
13{ 13{
14 double factor; 14 double slope;
15}; 15};
16 16
17EOLIAN static double 17EOLIAN static double
@@ -23,22 +23,22 @@ _efl_accelerate_interpolator_efl_interpolator_interpolate(Eo *eo_obj EINA_UNUSED
23 return progress; 23 return progress;
24 24
25 return ecore_animator_pos_map(progress, ECORE_POS_MAP_ACCELERATE_FACTOR, 25 return ecore_animator_pos_map(progress, ECORE_POS_MAP_ACCELERATE_FACTOR,
26 pd->factor, 0); 26 pd->slope, 0);
27} 27}
28 28
29EOLIAN static void 29EOLIAN static void
30_efl_accelerate_interpolator_factor_set(Eo *eo_obj EINA_UNUSED, 30_efl_accelerate_interpolator_slope_set(Eo *eo_obj EINA_UNUSED,
31 Efl_Accelerate_Interpolator_Data *pd, 31 Efl_Accelerate_Interpolator_Data *pd,
32 double factor) 32 double slope)
33{ 33{
34 pd->factor = factor; 34 pd->slope = slope;
35} 35}
36 36
37EOLIAN static double 37EOLIAN static double
38_efl_accelerate_interpolator_factor_get(const Eo *eo_obj EINA_UNUSED, 38_efl_accelerate_interpolator_slope_get(const Eo *eo_obj EINA_UNUSED,
39 Efl_Accelerate_Interpolator_Data *pd EINA_UNUSED) 39 Efl_Accelerate_Interpolator_Data *pd EINA_UNUSED)
40{ 40{
41 return pd->factor; 41 return pd->slope;
42} 42}
43 43
44EOLIAN static Efl_Object * 44EOLIAN static Efl_Object *
@@ -47,7 +47,7 @@ _efl_accelerate_interpolator_efl_object_constructor(Eo *eo_obj,
47{ 47{
48 eo_obj = efl_constructor(efl_super(eo_obj, MY_CLASS)); 48 eo_obj = efl_constructor(efl_super(eo_obj, MY_CLASS));
49 49
50 pd->factor = 1.0; 50 pd->slope = 1.0;
51 51
52 return eo_obj; 52 return eo_obj;
53} 53}