jpeg pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=eee3c1c77389f6ee0dc0bf067c594335eba2d303
commit eee3c1c77389f6ee0dc0bf067c594335eba2d303 Author: Jean-Philippe Andre <jp.an...@samsung.com> Date: Fri Mar 21 12:04:35 2014 +0900 Evas filters: Allow BLUR and GROW with radius 0 Fallback to a standard blend instruction instead of failing miserably just because the radius is 0. --- src/lib/evas/filters/evas_filter.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/lib/evas/filters/evas_filter.c b/src/lib/evas/filters/evas_filter.c index 16cc920..0c6c40f 100644 --- a/src/lib/evas/filters/evas_filter.c +++ b/src/lib/evas/filters/evas_filter.c @@ -914,7 +914,11 @@ evas_filter_command_blur_add(Evas_Filter_Context *ctx, void *drawctx, if (dx < 0) dx = 0; if (dy < 0) dy = 0; - if (!dx && !dy) goto fail; + if (!dx && !dy) + { + DBG("Changing 0px blur into simple blend"); + return evas_filter_command_blend_add(ctx, drawctx, inbuf, outbuf, ox, oy, EVAS_FILTER_FILL_MODE_NONE); + } in = _filter_buffer_get(ctx, inbuf); if (!in) @@ -1213,6 +1217,12 @@ evas_filter_command_grow_add(Evas_Filter_Context *ctx, void *draw_context, EINA_SAFETY_ON_NULL_RETURN_VAL(ctx, -1); + if (!radius) + { + DBG("Changing 0px grow into simple blend"); + return evas_filter_command_blend_add(ctx, draw_context, inbuf, outbuf, 0, 0, EVAS_FILTER_FILL_MODE_NONE); + } + in = _filter_buffer_get(ctx, inbuf); EINA_SAFETY_ON_NULL_RETURN_VAL(in, -1); --