cedric pushed a commit to branch master.

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

commit 014001fb20499d175f4e5c896ac4d27bf05c69c5
Author: Cedric BAIL <ced...@osg.samsung.com>
Date:   Thu Jun 25 17:56:26 2015 +0200

    font_effect: fix JP borking.
---
 src/bin/font_effect_blur_alpha.c | 6 ++++--
 src/bin/font_effect_blur_color.c | 6 ++++--
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/src/bin/font_effect_blur_alpha.c b/src/bin/font_effect_blur_alpha.c
index 8f812c9..14563e1 100644
--- a/src/bin/font_effect_blur_alpha.c
+++ b/src/bin/font_effect_blur_alpha.c
@@ -1,3 +1,5 @@
+#define EFL_GFX_FILTER_BETA
+
 #undef FNAME
 #undef NAME
 #undef ICON
@@ -50,9 +52,9 @@ static void _cleanup(void)
 static void _loop(double t, int f)
 {
    char buf[256];
-   char *str = "padding_set(%d);blur(%d,color=black);";
+   char *str = "padding_set({ %d });blur({%d,color=black });";
    sprintf(buf, str, MAX_BLUR, ((f % MAX_BLUR) + 1));
-   eo_do(text, evas_obj_text_filter_program_set(buf));
+   eo_do(text, efl_gfx_filter_program_set(buf, "test"));
 
    FPS_STD(NAME);
 }
diff --git a/src/bin/font_effect_blur_color.c b/src/bin/font_effect_blur_color.c
index 875f440..8f405e0 100644
--- a/src/bin/font_effect_blur_color.c
+++ b/src/bin/font_effect_blur_color.c
@@ -1,3 +1,5 @@
+#define EFL_GFX_FILTER_BETA
+
 #undef FNAME
 #undef NAME
 #undef ICON
@@ -52,9 +54,9 @@ static void _cleanup(void)
 static void _loop(double t, int f)
 {
    char buf[256];
-   char *str = 
"buffer:a(rgba);padding_set(%d);blend(dst=a,color=darkblue);blur(%d,src=a);";
+   char *str = "a = buffer({ 'rgba' }); padding_set({ %d }); blend({dst=a, 
color=darkblue});blur({%d,src=a});";
    sprintf(buf, str, MAX_BLUR, ((f % MAX_BLUR) + 1));
-   eo_do(text, evas_obj_text_filter_program_set(buf));
+   eo_do(text, efl_gfx_filter_program_set(buf, "test"));
 
    FPS_STD(NAME);
 }

-- 


Reply via email to