diff options
author | Sungtaek Hong <sth253.hong@samsung.com> | 2018-01-29 16:57:41 +0900 |
---|---|---|
committer | Jaehyun Cho <jae_hyun.cho@samsung.com> | 2018-01-29 19:31:39 +0900 |
commit | 09d3d5b85ad4a0b7441b5b1e508db0e595bef395 (patch) | |
tree | 104caca5f147549a55a43b58cd7041b1af633c7a | |
parent | 429e19563d15a02d3417ff8fffca994ce6685249 (diff) | |
download | efl-09d3d5b85ad4a0b7441b5b1e508db0e595bef395.tar.gz |
efl_ui_bg_widget_legacy: ignore ELM_SCALE
Summary:
For legacy efl_ui_bg_widget or elm_bg, ELM_SCALE is ignored
when calculating internal image size.
Test Plan:
compare elementary_test->bg option with
ELM_SCALE=2.0 elementary_test->bg option
Reviewers: woohyun, jpeg, Jaehyun_Cho
Reviewed By: Jaehyun_Cho
Subscribers: cedric, id213sin
Differential Revision: https://phab.enlightenment.org/D5763
-rw-r--r-- | src/lib/elementary/efl_ui_bg_widget.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/elementary/efl_ui_bg_widget.c b/src/lib/elementary/efl_ui_bg_widget.c index dba5dd7a34..3cc8fb1c58 100644 --- a/src/lib/elementary/efl_ui_bg_widget.c +++ b/src/lib/elementary/efl_ui_bg_widget.c @@ -244,6 +244,8 @@ _efl_ui_bg_widget_legacy_efl_object_constructor(Eo *obj, void *_pd EINA_UNUSED) { obj = efl_constructor(efl_super(obj, EFL_UI_BG_WIDGET_LEGACY_CLASS)); efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY); + EFL_UI_BG_WIDGET_DATA_GET_OR_RETURN_VAL(obj, pd, obj); + elm_image_no_scale_set(pd->img, EINA_TRUE); return obj; } |