From fea8b88893960dfce6b4907002d6d6a3ee51dd0f Mon Sep 17 00:00:00 2001 From: jeon Date: Mon, 28 Oct 2019 15:55:50 +0900 Subject: [PATCH] pui_ani: renew a timer instead of re-make a timer Change-Id: I7c6e7d81fef8a8b0a773544425a1438fe32e4ad9 --- src/PUI_ani.c | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/src/PUI_ani.c b/src/PUI_ani.c index e42a4cc..36ea036 100644 --- a/src/PUI_ani.c +++ b/src/PUI_ani.c @@ -155,8 +155,6 @@ static Eina_Bool _pui_ani_frame_cb(void *data) { Eina_Bool ret; - Ecore_Timer *timer = NULL; - pui_ani_t *ani = (pui_ani_t *)data; if (!PUI_MAGIC_CHECK(ani, PUI_MAGIC_ANI_T)) @@ -193,20 +191,7 @@ _pui_ani_frame_cb(void *data) if (ret && PUI_ANI_STATUS_STARTED == ani->status) pui_ani_status_update(ani, PUI_ANI_STATUS_RUNNING); - ecore_timer_del(ani->frame_cb_timer); - ani->frame_cb_timer = NULL; - - timer = ecore_timer_add(ani->frame_interval, _pui_ani_frame_cb, ani); - - if (!timer) - { - pui_err("Failed to add ecore timer !\n"); - return 0; - } - - ani->frame_cb_timer = timer; - - return EINA_FALSE; + return ECORE_CALLBACK_RENEW; } pui_bool -- 2.7.4