emul_state: change display resolution fallback
authorSeokYeon Hwang <syeon.hwang@samsung.com>
Fri, 2 Oct 2015 04:25:38 +0000 (13:25 +0900)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Fri, 2 Oct 2015 04:25:38 +0000 (13:25 +0900)
Display resolution fallback uses initial display resolution.

Change-Id: Ida54c4c8b55e828cbf9b0ab976f3393b6aecdfc5
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
tizen/src/emul_state.c

index c65903a7f9eddb0f294ab2b3c069914f1d639f21..8d090d6e59f4ef820685f15c0990d1f83454c4c1 100644 (file)
@@ -779,7 +779,7 @@ 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) {
@@ -796,7 +796,7 @@ 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) {