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
This commit is contained in:
Shinwoo Kim 2019-10-14 11:11:04 +09:00
parent ba09a8101b
commit f0b8c6b94e
1 changed files with 5 additions and 1 deletions

View File

@ -417,7 +417,11 @@ evas_filter_object_render(Eo *eo_obj, Evas_Object_Protected_Data *obj,
// Draw Context
drawctx = ENFN->context_new(engine);
ENFN->context_color_set(engine, drawctx, 255, 255, 255, 255);
ENFN->context_color_set(engine, drawctx,
obj->cur->cache.clip.r,
obj->cur->cache.clip.g,
obj->cur->cache.clip.b,
obj->cur->cache.clip.a);
// Set obscured region
evas_filter_context_obscured_region_set(filter, pd->data->obscured);