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:27:34 +0000 (13:27 +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 cce2116be64e2983c613ff060d79f1c7b823af5c..2ed22f6ff5452862f5bd05cae4c243873d4585cc 100644 (file)
@@ -809,7 +809,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) {
@@ -826,7 +826,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) {