summaryrefslogtreecommitdiff
path: root/src/static_libs
diff options
context:
space:
mode:
authorJunsuChoi <jsuya.choi@samsung.com>2019-06-11 19:01:11 +0900
committerHermet Park <hermetpark@gmail.com>2019-06-21 17:44:41 +0900
commit593ee304407714dec9152f482600721b763e1e6f (patch)
treee06bbf51ac3655f217db722c501d2492469864cc /src/static_libs
parent270c61dbb74f8f6e4f800f78b054a9da8cb84848 (diff)
vg_common_json: Set container's alpha color
Summary: If the layer has an alpha value, we have make it available to container. Test Plan: N/A Reviewers: Hermet, smohanty Reviewed By: Hermet Subscribers: cedric, #reviewers, kimcinoo, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9081
Diffstat (limited to 'src/static_libs')
-rw-r--r--src/static_libs/vg_common/vg_common_json.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/static_libs/vg_common/vg_common_json.c b/src/static_libs/vg_common/vg_common_json.c
index 3d00bbb842..f289bd65b4 100644
--- a/src/static_libs/vg_common/vg_common_json.c
+++ b/src/static_libs/vg_common/vg_common_json.c
@@ -361,6 +361,11 @@ _update_vg_tree(Efl_Canvas_Vg_Container *root, const LOTLayerNode *layer, int de
361 for (int i = 0; i < depth; i++) printf(" "); 361 for (int i = 0; i < depth; i++) printf(" ");
362 printf("%s (%p) matte:%d => %p\n", efl_class_name_get(efl_class_get(ctree)), ctree, matte_mode, ptree); 362 printf("%s (%p) matte:%d => %p\n", efl_class_name_get(efl_class_get(ctree)), ctree, matte_mode, ptree);
363#endif 363#endif
364
365 //Set Container's alpha color
366 if (clayer->mAlpha < 255)
367 efl_gfx_color_set(ctree, clayer->mAlpha, clayer->mAlpha, clayer->mAlpha, clayer->mAlpha);
368
364 _update_vg_tree(ctree, clayer, depth+1); 369 _update_vg_tree(ctree, clayer, depth+1);
365 370
366 if (matte_mode != 0) 371 if (matte_mode != 0)
@@ -438,6 +443,8 @@ vg_common_json_create_vg_node(Vg_File_Data *vfd)
438 efl_key_data_set(root, _get_key_val((void *) tree), tree); 443 efl_key_data_set(root, _get_key_val((void *) tree), tree);
439 vfd->root = root; 444 vfd->root = root;
440 } 445 }
446 if (tree->mAlpha < 255)
447 efl_gfx_color_set(root, tree->mAlpha, tree->mAlpha, tree->mAlpha, tree->mAlpha);
441 448
442 _update_vg_tree(root, tree, 1); 449 _update_vg_tree(root, tree, 1);
443#else 450#else