textblock_basic: increase an factor to update animation properly.
This commit is contained in:
parent
f3e0448bd3
commit
4828d1a5d5
|
@ -126,7 +126,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;
|
||||
|
||||
w0 = 160;
|
||||
h0 = 120;
|
||||
|
@ -138,6 +138,7 @@ static void _loop(double t, int f)
|
|||
y += cos((double)(f + (i * 28)) / (93.8 * SLOW)) * (h0 / 2);
|
||||
efl_gfx_entity_position_set(o_text, EINA_POSITION2D(x, y));
|
||||
efl_gfx_entity_size_set(o_text, EINA_SIZE2D(w, 5000));
|
||||
++i;
|
||||
|
||||
FPS_STD(NAME);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue