static void _loop(double t, int f)
{
Evas_Coord x, y, w, h, w0, h0;
- int i = 0;
+ static int i = 0;
evas_object_textblock_size_native_get(o_text, &w0, &h0);
w = w0;
y += cos((double)(f + (i * 28)) / (19.6 * SLOW)) * (h0 / (2 * 2));
efl_gfx_entity_position_set(o_text, EINA_POSITION2D(x, y));
efl_gfx_entity_size_set(o_text, EINA_SIZE2D(w, h));
+ ++i;
FPS_STD(NAME);
}
# ifndef UI
void FNAME(void)
{
- _setup();
- ui_func_set(_key, _loop);
+ ui_func_set(_key, _loop, _setup);
}
# endif
#endif