summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHermet Park <hermetpark@gmail.com>2019-12-27 15:03:51 +0900
committerHermet Park <hermetpark@gmail.com>2019-12-27 15:03:51 +0900
commitb72d775b10ec1c77514d3657e69431d43fe4b817 (patch)
treefc6030d0be5706d9010553a8dbb9353003c5faad
parentaee23715a29cb9f0b375e1b33762373d529b9c34 (diff)
proxy_textblock: increase a factor to update animation properly.
-rw-r--r--src/bin/proxy_textblock.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/bin/proxy_textblock.c b/src/bin/proxy_textblock.c
index 262b81e..32aa4e2 100644
--- a/src/bin/proxy_textblock.c
+++ b/src/bin/proxy_textblock.c
@@ -102,6 +102,7 @@ static void _cleanup(void)
102/* loop - do things */ 102/* loop - do things */
103static void _loop(double t, int f) 103static void _loop(double t, int f)
104{ 104{
105 static int k = 0;
105 int i; 106 int i;
106 Evas_Coord x, y, w, h; 107 Evas_Coord x, y, w, h;
107 for (i = 0; i < OBNUM; i++) 108 for (i = 0; i < OBNUM; i++)
@@ -109,9 +110,9 @@ static void _loop(double t, int f)
109 w = 480; 110 w = 480;
110 h = 160; 111 h = 160;
111 x = (win_w / 2) - (w / 2); 112 x = (win_w / 2) - (w / 2);
112 x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2); 113 x += sin((double)(f + ((i + k) * 13)) / (36.7 * SLOW)) * (w / 2);
113 y = (win_h / 2) - (h / 2); 114 y = (win_h / 2) - (h / 2);
114 y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2); 115 y += cos((double)(f + ((i + k) * 28)) / (43.8 * SLOW)) * (h / 2);
115 efl_gfx_entity_position_set(o_texts[i], EINA_POSITION2D(x, y)); 116 efl_gfx_entity_position_set(o_texts[i], EINA_POSITION2D(x, y));
116 i++; 117 i++;
117 efl_gfx_entity_position_set(o_texts[i], EINA_POSITION2D(x, y)); 118 efl_gfx_entity_position_set(o_texts[i], EINA_POSITION2D(x, y));
@@ -120,6 +121,7 @@ static void _loop(double t, int f)
120 i++; 121 i++;
121 efl_gfx_entity_position_set(o_texts[i], EINA_POSITION2D(x, y + (h / 2))); 122 efl_gfx_entity_position_set(o_texts[i], EINA_POSITION2D(x, y + (h / 2)));
122 } 123 }
124 ++k;
123 FPS_STD(NAME); 125 FPS_STD(NAME);
124} 126}
125 127