summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2019-12-04 10:20:38 +0100
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2019-12-04 16:30:44 +0100
commitfc7d398e07af857e67d8e7038f2bc989a9086ee6 (patch)
tree11648634df3c1a26338c5ae8686975b74ffb08a8
parenta29be18b5f6f94d8b4e6e7738ced1ae502159fbc (diff)
downloadefl-fc7d398e07af857e67d8e7038f2bc989a9086ee6.tar.gz
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 <xavierartigas@yahoo.es> Differential Revision: https://phab.enlightenment.org/D10797
-rw-r--r--src/lib/evas/canvas/efl_canvas_animation.c5
1 files 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));