forked from enlightenment/efl
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
This commit is contained in:
parent
429e19563d
commit
09d3d5b85a
|
@ -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));
|
obj = efl_constructor(efl_super(obj, EFL_UI_BG_WIDGET_LEGACY_CLASS));
|
||||||
efl_canvas_object_type_set(obj, MY_CLASS_NAME_LEGACY);
|
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;
|
return obj;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue