containing ui setup steps in the profiling again.
[platform/upstream/expedite.git] / src / bin / textblock_intl.c
index daac0b5..8317357 100755 (executable)
@@ -97,7 +97,7 @@ static void _cleanup(void)
 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;
@@ -108,6 +108,7 @@ static void _loop(double t, int f)
    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);
 }
@@ -145,8 +146,7 @@ void FNAME(void);
 # ifndef UI
 void FNAME(void)
 {
-   _setup();
-   ui_func_set(_key, _loop);
+   ui_func_set(_key, _loop, _setup);
 }
 # endif
 #endif