hermet pushed a commit to branch master.

http://git.enlightenment.org/tools/expedite.git/commit/?id=b72d775b10ec1c77514d3657e69431d43fe4b817

commit b72d775b10ec1c77514d3657e69431d43fe4b817
Author: Hermet Park <[email protected]>
Date:   Fri Dec 27 15:03:51 2019 +0900

    proxy_textblock: increase a factor to update animation properly.
---
 src/bin/proxy_textblock.c | 6 ++++--
 1 file 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)
 /* loop - do things */
 static void _loop(double t, int f)
 {
+   static int k = 0;
    int i;
    Evas_Coord x, y, w, h;
    for (i = 0; i < OBNUM; i++)
@@ -109,9 +110,9 @@ static void _loop(double t, int f)
         w = 480;
         h = 160;
         x = (win_w / 2) - (w / 2);
-        x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
+        x += sin((double)(f + ((i + k) * 13)) / (36.7 * SLOW)) * (w / 2);
         y = (win_h / 2) - (h / 2);
-        y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (h / 2);
+        y += cos((double)(f + ((i + k) * 28)) / (43.8 * SLOW)) * (h / 2);
         efl_gfx_entity_position_set(o_texts[i], EINA_POSITION2D(x, y));
         i++;
         efl_gfx_entity_position_set(o_texts[i], EINA_POSITION2D(x, y));
@@ -120,6 +121,7 @@ static void _loop(double t, int f)
         i++;
         efl_gfx_entity_position_set(o_texts[i], EINA_POSITION2D(x, y + (h / 
2)));
      }
+   ++k;
    FPS_STD(NAME);
 }
 

-- 


Reply via email to