summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2015-06-15 17:43:39 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2015-06-25 14:36:08 +0900
commitf57929bf6ed4f9e0d20de2c90be663c48cfadd29 (patch)
tree994f4f7cc1d67d949cda976edfc0e85cef840fe6 /src
parent4882788527c037a70ca7344d370c891e53d88e61 (diff)
Evas filters: Fix blur from rgba to alpha
Diffstat (limited to 'src')
-rw-r--r--src/lib/evas/filters/evas_filter.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/lib/evas/filters/evas_filter.c b/src/lib/evas/filters/evas_filter.c
index dc022a3..7ad2878 100644
--- a/src/lib/evas/filters/evas_filter.c
+++ b/src/lib/evas/filters/evas_filter.c
@@ -931,14 +931,9 @@ evas_filter_command_blur_add(Evas_Filter_Context *ctx, void *drawctx,
931 goto fail; 931 goto fail;
932 } 932 }
933 933
934 if (!in->alpha_only && out->alpha_only) 934 if ((blend || (in->alpha_only && !out->alpha_only)) ||
935 { 935 (!blend && !in->alpha_only && !out->alpha_only && (color != 0xFFFFFFFF)) ||
936 /* FIXME: Add temporary buffer + blend */ 936 (!in->alpha_only && out->alpha_only))
937 ERR("Input is RGBA but output is Alpha only. Unsupported config for blur.");
938 goto fail;
939 }
940 else if ((blend || (in->alpha_only && !out->alpha_only)) ||
941 (!blend && !in->alpha_only && !out->alpha_only && (color != 0xFFFFFFFF)))
942 { 937 {
943 XDBG("Adding extra blending step %d --> %d (%s --> %s)", in->id, out->id, 938 XDBG("Adding extra blending step %d --> %d (%s --> %s)", in->id, out->id,
944 in->alpha_only ? "Alpha" : "RGBA", 939 in->alpha_only ? "Alpha" : "RGBA",