summaryrefslogtreecommitdiff
path: root/src/bin/elementary/test_multibuttonentry.c
diff options
context:
space:
mode:
authorVincent Torri <vincent.torri@gmail.com>2021-11-25 10:17:45 +0000
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2021-12-04 09:18:47 +0000
commit711638c7d255401539078e1534e6bdb75e39803d (patch)
tree0526f7d53df48d3bb4d1ba5b6ad1f16a1698bf20 /src/bin/elementary/test_multibuttonentry.c
parent981e85f99cdb1c1945d57256f8d1448168610573 (diff)
downloadefl-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_multibuttonentry.c')
-rw-r--r--src/bin/elementary/test_multibuttonentry.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/bin/elementary/test_multibuttonentry.c b/src/bin/elementary/test_multibuttonentry.c
index e4c3370908..b2c1f30b6f 100644
--- a/src/bin/elementary/test_multibuttonentry.c
+++ b/src/bin/elementary/test_multibuttonentry.c
@@ -256,7 +256,8 @@ test_multibuttonentry(void *data EINA_UNUSED,
sc = _add_multibuttonentry(ly);
elm_object_part_content_set(ly, "multibuttonentry", sc);
- evas_object_resize(win, 320, 480);
+ evas_object_resize(win, 320 * elm_config_scale_get(),
+ 480 * elm_config_scale_get());
evas_object_show(win);
}
@@ -342,6 +343,7 @@ test_multibuttonentry2(void *data EINA_UNUSED,
sc = _add_multibuttonentry_shrink(ly);
elm_object_part_content_set(ly, "multibuttonentry", sc);
- evas_object_resize(win, 320, 480);
+ evas_object_resize(win, 320 * elm_config_scale_get(),
+ 480 * elm_config_scale_get());
evas_object_show(win);
}