diff options
author | Vincent Torri <vincent.torri@gmail.com> | 2021-11-25 10:17:45 +0000 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2021-12-04 09:18:47 +0000 |
commit | 711638c7d255401539078e1534e6bdb75e39803d (patch) | |
tree | 0526f7d53df48d3bb4d1ba5b6ad1f16a1698bf20 /src/bin/elementary/test_image.c | |
parent | 981e85f99cdb1c1945d57256f8d1448168610573 (diff) | |
download | efl-711638c7d255401539078e1534e6bdb75e39803d.tar.gz |
Elm_tests: resize windows according to elm scale
Summary: On laptop with 4K display, windows are too small, so resize windows according to elm scale
Test Plan: elm_tests
Reviewers: raster
Subscribers: cedric, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D12307
Diffstat (limited to 'src/bin/elementary/test_image.c')
-rw-r--r-- | src/bin/elementary/test_image.c | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/src/bin/elementary/test_image.c b/src/bin/elementary/test_image.c index 38304cc6e4..74eb95b295 100644 --- a/src/bin/elementary/test_image.c +++ b/src/bin/elementary/test_image.c @@ -78,7 +78,8 @@ test_image(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_in } } - evas_object_resize(win, 320, 480); + evas_object_resize(win, 320 * elm_config_scale_get(), + 480 * elm_config_scale_get()); evas_object_show(win); } @@ -172,7 +173,8 @@ test_image_scale_type(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, voi } } - evas_object_resize(win, 320, 480); + evas_object_resize(win, 320 * elm_config_scale_get(), + 480 * elm_config_scale_get()); evas_object_show(win); } @@ -227,7 +229,8 @@ test_image_swallow_align(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, evas_object_show(sl); evas_object_data_set(win, "v_sl", sl); - evas_object_resize(win, 300, 600); + evas_object_resize(win, 300 * elm_config_scale_get(), + 600 * elm_config_scale_get()); evas_object_show(win); } @@ -395,8 +398,9 @@ test_remote_image(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *e // set file now _url_activate_cb(win, o, NULL); + evas_object_resize(win, 320 * elm_config_scale_get(), + 480 * elm_config_scale_get()); evas_object_show(win); - evas_object_resize(win, 320, 480); } static void @@ -438,7 +442,8 @@ test_click_image(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *ev elm_box_pack_end(box, label); evas_object_show(label); - evas_object_resize(win, 320, 480); + evas_object_resize(win, 320 * elm_config_scale_get(), + 480 * elm_config_scale_get()); evas_object_show(win); } @@ -640,7 +645,8 @@ test_load_image(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *eve evas_object_show(hbox); elm_box_pack_end(box, hbox); - evas_object_resize(win, 320, 480); + evas_object_resize(win, 320 * elm_config_scale_get(), + 480 * elm_config_scale_get()); evas_object_show(win); } @@ -715,6 +721,7 @@ test_image_prescale(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void * elm_box_pack_end(box, hbox); evas_object_show(hbox); - evas_object_resize(win, 320, 320); + evas_object_resize(win, 320 * elm_config_scale_get(), + 320 * elm_config_scale_get()); evas_object_show(win); } |