summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2019-12-26 17:07:55 +0900
committerHermet Park <hermetpark@gmail.com>2019-12-26 17:07:55 +0900
commit4828d1a5d551a42a03234c0b8e0c8425dca29b22 (patch)
tree9791e68cd58fb3ec0d778e928aa0604bcf69590a
parentf3e0448bd38c0450293d29c908992548993bc38b (diff)
textblock_basic: increase an factor to update animation properly.
-rw-r--r--src/bin/textblock_basic.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/textblock_basic.c b/src/bin/textblock_basic.c
index 82f20b5..9736ac4 100644
--- a/src/bin/textblock_basic.c
+++ b/src/bin/textblock_basic.c
@@ -126,7 +126,7 @@ static void _cleanup(void)
126static void _loop(double t, int f) 126static void _loop(double t, int f)
127{ 127{
128 Evas_Coord x, y, w, h, w0, h0; 128 Evas_Coord x, y, w, h, w0, h0;
129 int i = 0; 129 static int i = 0;
130 130
131 w0 = 160; 131 w0 = 160;
132 h0 = 120; 132 h0 = 120;
@@ -138,6 +138,7 @@ static void _loop(double t, int f)
138 y += cos((double)(f + (i * 28)) / (93.8 * SLOW)) * (h0 / 2); 138 y += cos((double)(f + (i * 28)) / (93.8 * SLOW)) * (h0 / 2);
139 efl_gfx_entity_position_set(o_text, EINA_POSITION2D(x, y)); 139 efl_gfx_entity_position_set(o_text, EINA_POSITION2D(x, y));
140 efl_gfx_entity_size_set(o_text, EINA_SIZE2D(w, 5000)); 140 efl_gfx_entity_size_set(o_text, EINA_SIZE2D(w, 5000));
141 ++i;
141 142
142 FPS_STD(NAME); 143 FPS_STD(NAME);
143} 144}