textblock_intl: increase a factor to update animation properly.

This commit is contained in:
Hermet Park 2019-12-26 17:22:10 +09:00
parent 4828d1a5d5
commit 67771fd4a6
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}