From: SeokYeon Hwang Date: Fri, 2 Oct 2015 04:25:38 +0000 (+0900) Subject: emul_state: change display resolution fallback X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.2~40^2~65 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f899d1d275dc64baa6f3db981e8b9b1aa56be0bd;p=sdk%2Femulator%2Fqemu.git emul_state: change display resolution fallback Display resolution fallback uses initial display resolution. Change-Id: Ida54c4c8b55e828cbf9b0ab976f3393b6aecdfc5 Signed-off-by: SeokYeon Hwang --- diff --git a/tizen/src/emul_state.c b/tizen/src/emul_state.c index 79812166f8..60a169380a 100644 --- a/tizen/src/emul_state.c +++ b/tizen/src/emul_state.c @@ -831,11 +831,11 @@ void set_initial_display_resolution(int width, int height) int get_display_resolution_width(void) { #ifndef CONFIG_JAVA_UI - return qemu_console_get_width(NULL, -1); + return qemu_console_get_width(NULL, initial_resolution_width); #else if (display_type == DT_MARU_QT_ONSCREEN || display_type == DT_MARU_QT_OFFSCREEN) { - return qemu_console_get_width(NULL, -1); + return qemu_console_get_width(NULL, initial_resolution_width); } if (initial_resolution_width == -1) { set_resolution_legacy(); @@ -848,10 +848,11 @@ int get_display_resolution_width(void) int get_display_resolution_height(void) { #ifndef CONFIG_JAVA_UI - return qemu_console_get_height(NULL, -1); + return qemu_console_get_height(NULL, initial_resolution_height); #else if (display_type == DT_MARU_QT_ONSCREEN || - display_type == DT_MARU_QT_OFFSCREEN) { + display_type == DT_MARU_QT_OFFSCREEN, + initial_resolution_height) { return qemu_console_get_height(NULL, -1); } if (initial_resolution_height == -1) {