hermet pushed a commit to branch master.

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

commit 4828d1a5d551a42a03234c0b8e0c8425dca29b22
Author: Hermet Park <[email protected]>
Date:   Thu Dec 26 17:07:55 2019 +0900

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

diff --git a/src/bin/textblock_basic.c b/src/bin/textblock_basic.c
index 82f20b5..9736ac4 100644
--- a/src/bin/textblock_basic.c
+++ b/src/bin/textblock_basic.c
@@ -126,7 +126,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;
 
    w0 = 160;
    h0 = 120;
@@ -138,6 +138,7 @@ static void _loop(double t, int f)
    y += cos((double)(f + (i * 28)) / (93.8 * SLOW)) * (h0 / 2);
    efl_gfx_entity_position_set(o_text, EINA_POSITION2D(x, y));
    efl_gfx_entity_size_set(o_text, EINA_SIZE2D(w, 5000));
+   ++i;
 
    FPS_STD(NAME);
 }

-- 


Reply via email to