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_anim.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_anim.c')
-rw-r--r-- | src/bin/elementary/test_anim.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/elementary/test_anim.c b/src/bin/elementary/test_anim.c index caad01431f..6d9c66be73 100644 --- a/src/bin/elementary/test_anim.c +++ b/src/bin/elementary/test_anim.c @@ -89,7 +89,8 @@ test_anim(void *data EINA_UNUSED, Evas_Object *obj EINA_UNUSED, void *event_info evas_object_data_set(win, names[(i * 2)], bub); } - evas_object_resize(win, 480, 800); + evas_object_resize(win, 480 * elm_config_scale_get(), + 800 * elm_config_scale_get()); evas_object_show(win); efl_event_callback_add(win, EFL_CANVAS_OBJECT_EVENT_ANIMATOR_TICK, _anim_tick, NULL); |