diff options
author | Umesh Tanwar <umesh.tanwar@samsung.com> | 2017-03-10 11:49:16 +0530 |
---|---|---|
committer | Amitesh Singh <amitesh.sh@samsung.com> | 2017-03-10 11:57:08 +0530 |
commit | 3b4cbc56bb86d3344ddc6f40b874cc178c26b216 (patch) | |
tree | cde8e2952379c2fb1fa94e38303c5346c71b65bc | |
parent | 6c62ae3e6e1531d76a31aaacebee35f76b0abfa4 (diff) | |
download | efl-3b4cbc56bb86d3344ddc6f40b874cc178c26b216.tar.gz |
ecore_animator: use EINA_DBL_EQ for comparing double values
Summary:
EINA_FLT_EQ was used to compare double values. replace it with EINA_DBL_EQ
@fix
Signed-off-by: Umesh Tanwar <umesh.tanwar@samsung.com>
Reviewers: raster, cedric, singh.amitesh
Reviewed By: singh.amitesh
Subscribers: atulfokk
Differential Revision: https://phab.enlightenment.org/D4712
Signed-off-by: Amitesh Singh <amitesh.sh@samsung.com>
-rw-r--r-- | src/lib/ecore/ecore_anim.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/ecore/ecore_anim.c b/src/lib/ecore/ecore_anim.c index 8990c074c8..461d035152 100644 --- a/src/lib/ecore/ecore_anim.c +++ b/src/lib/ecore/ecore_anim.c @@ -223,7 +223,7 @@ _timer_tick_core(void *data EINA_UNUSED, Ecore_Thread *thread) d = fmod(t0, ft); if (tick) { - if (!EINA_FLT_EQ(pframetime, ft)) + if (!EINA_DBL_EQ(pframetime, ft)) { t = (ft - d) * 1000000000.0; t_ft = ft * 1000000000.0; @@ -686,7 +686,7 @@ _cubic_bezier_t_get(double a, for (int i = 0; i < LIMIT; i++) { current_slope = _cubic_bezier_slope_get(guess_t, x1, x2); - if (EINA_FLT_EQ(current_slope, 0.0)) return guess_t; + if (EINA_DBL_EQ(current_slope, 0.0)) return guess_t; current_x = _cubic_bezier_calc(guess_t, x1, x2) - a; change = current_x / current_slope; guess_t -= change; @@ -702,8 +702,8 @@ _pos_map_cubic_bezier(double pos, double x2, double y2) { - if (EINA_FLT_EQ(x1, y1) && - EINA_FLT_EQ(x2, y2)) + if (EINA_DBL_EQ(x1, y1) && + EINA_DBL_EQ(x2, y2)) return pos; return _cubic_bezier_calc(_cubic_bezier_t_get(pos, x1, x2), y1, y2); } @@ -844,7 +844,7 @@ ecore_animator_frametime_set(double frametime) { EINA_MAIN_LOOP_CHECK_RETURN; if (frametime < 0.0) frametime = 0.0; - if (EINA_FLT_EQ(animators_frametime, frametime)) return ; + if (EINA_DBL_EQ(animators_frametime, frametime)) return ; animators_frametime = frametime; _end_tick(); if (_have_animators()) _begin_tick(); |