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, 20 Nov 2015 08:47:11 +0000 (17:47 +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 79812166f8379d7fa4c9b5fb4a12de6b48111ad9..60a169380aac9de7357442fd75be82b77819f101 100644 (file)
@@ -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) {