bu5hm4n pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=fc7d398e07af857e67d8e7038f2bc989a9086ee6
commit fc7d398e07af857e67d8e7038f2bc989a9086ee6 Author: Marcel Hollerbach <[email protected]> Date: Wed Dec 4 10:20:38 2019 +0100 efl_canvas_animation: use floating point infinite instead of macro the floating point infinite builtin should also work cross languages (so this is better for bindings). ref T8437 Reviewed-by: Xavi Artigas <[email protected]> Differential Revision: https://phab.enlightenment.org/D10797 --- src/lib/evas/canvas/efl_canvas_animation.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/lib/evas/canvas/efl_canvas_animation.c b/src/lib/evas/canvas/efl_canvas_animation.c index 772fb41b18..001dca7892 100644 --- a/src/lib/evas/canvas/efl_canvas_animation.c +++ b/src/lib/evas/canvas/efl_canvas_animation.c @@ -1,5 +1,5 @@ #include "efl_canvas_animation_private.h" - +#include <math.h> #define MY_CLASS EFL_CANVAS_ANIMATION_CLASS static double _default_animation_time = 0.2; //in seconds @@ -117,8 +117,7 @@ _efl_canvas_animation_efl_playable_length_get(const Eo *eo_obj, Efl_Canvas_Anima { if (efl_animation_repeat_count_get(eo_obj) == EFL_ANIMATION_REPEAT_INFINITE) { - //TODO: what's correct? - return (double)EFL_ANIMATION_REPEAT_INFINITE; + return INFINITY; } return (efl_animation_duration_get(eo_obj) * (efl_animation_repeat_count_get(eo_obj) + 1)); --
