_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))
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