hermet pushed a commit to branch master.

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

commit aee23715a29cb9f0b375e1b33762373d529b9c34
Author: Hermet Park <[email protected]>
Date:   Fri Dec 27 13:50:25 2019 +0900

    text_style_different_string: increase a factor to update animation properly.
---
 src/bin/text_styles_different_strings.c | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/src/bin/text_styles_different_strings.c 
b/src/bin/text_styles_different_strings.c
index e5cf355..02a2507 100644
--- a/src/bin/text_styles_different_strings.c
+++ b/src/bin/text_styles_different_strings.c
@@ -67,17 +67,19 @@ 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++)
      {
-       exp_size_get(o_texts[i], &w, &h);
-       x = (win_w / 2) - (w / 2);
-       x += sin((double)(f + (i * 13)) / (36.7 * SLOW)) * (w / 2);
-       y = (win_h / 2) - (h / 2);
-       y += cos((double)(f + (i * 28)) / (43.8 * SLOW)) * (w / 2);
-       efl_gfx_entity_position_set(o_texts[i], EINA_POSITION2D(x, y));
+        exp_size_get(o_texts[i], &w, &h);
+        x = (win_w / 2) - (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 + k) * 28)) / (43.8 * SLOW)) * (w / 2);
+        efl_gfx_entity_position_set(o_texts[i], EINA_POSITION2D(x, y));
      }
+   ++k;
    FPS_STD(NAME);
 }
 

-- 


Reply via email to