From: Andy Williams Date: Wed, 27 Apr 2016 15:20:02 +0000 (+0100) Subject: elementary: Set window size based on scale X-Git-Tag: upstream/1.20.0~6582 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c47b5a364c7f8e467bc3976eb0e040e0fd787d3d;p=platform%2Fupstream%2Fefl.git elementary: Set window size based on scale --- diff --git a/src/bin/elementary/config.c b/src/bin/elementary/config.c index ed1261a..2eb64b8 100644 --- a/src/bin/elementary/config.c +++ b/src/bin/elementary/config.c @@ -4167,7 +4167,8 @@ win_create(void) _status_config(win, bx0); else _status_config_full(win, bx0); - evas_object_resize(win, 320, 480); + evas_object_resize(win, 320 * elm_config_scale_get(), + 480 * elm_config_scale_get()); evas_object_show(win); } diff --git a/src/bin/elementary/test.c b/src/bin/elementary/test.c index 5f272a0..de8e6d3 100644 --- a/src/bin/elementary/test.c +++ b/src/bin/elementary/test.c @@ -940,7 +940,7 @@ add_tests: } /* set an initial window size */ - evas_object_resize(win, 480, 480); + evas_object_resize(win, 480 * elm_config_scale_get(), 480 * elm_config_scale_get()); evas_object_show(win); }