vg_common_json: Always set the alpha color of the container.

Summary: Fixes the problem that alpha color is not set when alpha will be 255.

Test Plan: N/A

Reviewers: Hermet, smohanty, kimcinoo

Reviewed By: Hermet

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D9216
This commit is contained in:
junsu choi 2019-07-09 14:21:55 +09:00 committed by Hermet Park
parent 228b91e36f
commit 9a55abef30
1 changed files with 2 additions and 4 deletions

View File

@ -363,7 +363,6 @@ _update_vg_tree(Efl_Canvas_Vg_Container *root, const LOTLayerNode *layer, int de
#endif
//Set Container's alpha color
if (clayer->mAlpha < 255)
efl_gfx_color_set(ctree, clayer->mAlpha, clayer->mAlpha, clayer->mAlpha, clayer->mAlpha);
_update_vg_tree(ctree, clayer, depth+1);
@ -443,7 +442,6 @@ vg_common_json_create_vg_node(Vg_File_Data *vfd)
efl_key_data_set(root, _get_key_val((void *) tree), tree);
vfd->root = root;
}
if (tree->mAlpha < 255)
efl_gfx_color_set(root, tree->mAlpha, tree->mAlpha, tree->mAlpha, tree->mAlpha);
_update_vg_tree(root, tree, 1);