diff options
author | Cedric BAIL <cedric@osg.samsung.com> | 2015-06-25 17:56:26 +0200 |
---|---|---|
committer | Cedric BAIL <cedric@osg.samsung.com> | 2015-06-25 17:56:26 +0200 |
commit | 014001fb20499d175f4e5c896ac4d27bf05c69c5 (patch) | |
tree | faca5ae86548bcb3e98a6b0398dbed16c0cd917c | |
parent | 7de69008b43fdb0d839a2a36d3237247da1453c5 (diff) |
font_effect: fix JP borking.
-rw-r--r-- | src/bin/font_effect_blur_alpha.c | 6 | ||||
-rw-r--r-- | 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 @@ | |||
1 | #define EFL_GFX_FILTER_BETA | ||
2 | |||
1 | #undef FNAME | 3 | #undef FNAME |
2 | #undef NAME | 4 | #undef NAME |
3 | #undef ICON | 5 | #undef ICON |
@@ -50,9 +52,9 @@ static void _cleanup(void) | |||
50 | static void _loop(double t, int f) | 52 | static void _loop(double t, int f) |
51 | { | 53 | { |
52 | char buf[256]; | 54 | char buf[256]; |
53 | char *str = "padding_set(%d);blur(%d,color=black);"; | 55 | char *str = "padding_set({ %d });blur({%d,color=black });"; |
54 | sprintf(buf, str, MAX_BLUR, ((f % MAX_BLUR) + 1)); | 56 | sprintf(buf, str, MAX_BLUR, ((f % MAX_BLUR) + 1)); |
55 | eo_do(text, evas_obj_text_filter_program_set(buf)); | 57 | eo_do(text, efl_gfx_filter_program_set(buf, "test")); |
56 | 58 | ||
57 | FPS_STD(NAME); | 59 | FPS_STD(NAME); |
58 | } | 60 | } |
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 @@ | |||
1 | #define EFL_GFX_FILTER_BETA | ||
2 | |||
1 | #undef FNAME | 3 | #undef FNAME |
2 | #undef NAME | 4 | #undef NAME |
3 | #undef ICON | 5 | #undef ICON |
@@ -52,9 +54,9 @@ static void _cleanup(void) | |||
52 | static void _loop(double t, int f) | 54 | static void _loop(double t, int f) |
53 | { | 55 | { |
54 | char buf[256]; | 56 | char buf[256]; |
55 | char *str = "buffer:a(rgba);padding_set(%d);blend(dst=a,color=darkblue);blur(%d,src=a);"; | 57 | char *str = "a = buffer({ 'rgba' }); padding_set({ %d }); blend({dst=a, color=darkblue});blur({%d,src=a});"; |
56 | sprintf(buf, str, MAX_BLUR, ((f % MAX_BLUR) + 1)); | 58 | sprintf(buf, str, MAX_BLUR, ((f % MAX_BLUR) + 1)); |
57 | eo_do(text, evas_obj_text_filter_program_set(buf)); | 59 | eo_do(text, efl_gfx_filter_program_set(buf, "test")); |
58 | 60 | ||
59 | FPS_STD(NAME); | 61 | FPS_STD(NAME); |
60 | } | 62 | } |