summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinwoo Kim <cinoo.kim@samsung.com>2019-10-14 11:11:04 +0900
committerShinwoo Kim <cinoo.kim@samsung.com>2019-10-14 11:11:40 +0900
commitf0b8c6b94e13507766212d24575ef791747d9d97 (patch)
tree3e17a1ee2f20f9162c6fccaa44c4f6890f98d120
parentba09a8101bedf320873d830e97fded0c64370e43 (diff)
evas filter: preserve text source color
Summary: The filter did not use text source color. Whatever color a text has, filter used white color instead of it. Test Plan: efl_gfx_filter_program_set(non_white_color_text, "code", "name"); Reviewers: Hermet, jsuya, cedric Reviewed By: cedric Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10336
-rw-r--r--src/lib/evas/canvas/evas_filter_mixin.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/lib/evas/canvas/evas_filter_mixin.c b/src/lib/evas/canvas/evas_filter_mixin.c
index 4da1c6ddaf..00942628f1 100644
--- a/src/lib/evas/canvas/evas_filter_mixin.c
+++ b/src/lib/evas/canvas/evas_filter_mixin.c
@@ -417,7 +417,11 @@ evas_filter_object_render(Eo *eo_obj, Evas_Object_Protected_Data *obj,
417 417
418 // Draw Context 418 // Draw Context
419 drawctx = ENFN->context_new(engine); 419 drawctx = ENFN->context_new(engine);
420 ENFN->context_color_set(engine, drawctx, 255, 255, 255, 255); 420 ENFN->context_color_set(engine, drawctx,
421 obj->cur->cache.clip.r,
422 obj->cur->cache.clip.g,
423 obj->cur->cache.clip.b,
424 obj->cur->cache.clip.a);
421 425
422 // Set obscured region 426 // Set obscured region
423 evas_filter_context_obscured_region_set(filter, pd->data->obscured); 427 evas_filter_context_obscured_region_set(filter, pd->data->obscured);