summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2019-12-26 17:22:10 +0900
committerHermet Park <hermetpark@gmail.com>2019-12-26 17:22:10 +0900
commit67771fd4a69e9931fc02ec84aedf05e540c571fe (patch)
treeb453b85cf2a0b6606767c8809a4769f3198abf54
parent4828d1a5d551a42a03234c0b8e0c8425dca29b22 (diff)
textblock_intl: increase a factor to update animation properly.
-rw-r--r--src/bin/textblock_intl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/textblock_intl.c b/src/bin/textblock_intl.c
index daac0b5..3a9c49a 100644
--- a/src/bin/textblock_intl.c
+++ b/src/bin/textblock_intl.c
@@ -97,7 +97,7 @@ static void _cleanup(void)
97static void _loop(double t, int f) 97static void _loop(double t, int f)
98{ 98{
99 Evas_Coord x, y, w, h, w0, h0; 99 Evas_Coord x, y, w, h, w0, h0;
100 int i = 0; 100 static int i = 0;
101 101
102 evas_object_textblock_size_native_get(o_text, &w0, &h0); 102 evas_object_textblock_size_native_get(o_text, &w0, &h0);
103 w = w0; 103 w = w0;
@@ -108,6 +108,7 @@ static void _loop(double t, int f)
108 y += cos((double)(f + (i * 28)) / (19.6 * SLOW)) * (h0 / (2 * 2)); 108 y += cos((double)(f + (i * 28)) / (19.6 * SLOW)) * (h0 / (2 * 2));
109 efl_gfx_entity_position_set(o_text, EINA_POSITION2D(x, y)); 109 efl_gfx_entity_position_set(o_text, EINA_POSITION2D(x, y));
110 efl_gfx_entity_size_set(o_text, EINA_SIZE2D(w, h)); 110 efl_gfx_entity_size_set(o_text, EINA_SIZE2D(w, h));
111 ++i;
111 112
112 FPS_STD(NAME); 113 FPS_STD(NAME);
113} 114}