hermet pushed a commit to branch master.

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

commit 67771fd4a69e9931fc02ec84aedf05e540c571fe
Author: Hermet Park <[email protected]>
Date:   Thu Dec 26 17:22:10 2019 +0900

    textblock_intl: increase a factor to update animation properly.
---
 src/bin/textblock_intl.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

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)
 static void _loop(double t, int f)
 {
    Evas_Coord x, y, w, h, w0, h0;
-   int i = 0;
+   static int i = 0;
 
    evas_object_textblock_size_native_get(o_text, &w0, &h0);
    w = w0;
@@ -108,6 +108,7 @@ static void _loop(double t, int f)
    y += cos((double)(f + (i * 28)) / (19.6 * SLOW)) * (h0 / (2 * 2));
    efl_gfx_entity_position_set(o_text, EINA_POSITION2D(x, y));
    efl_gfx_entity_size_set(o_text, EINA_SIZE2D(w, h));
+   ++i;
 
    FPS_STD(NAME);
 }

-- 


Reply via email to