forked from enlightenment/efl
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
This commit is contained in:
parent
a29be18b5f
commit
fc7d398e07
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue