[Title] define DT_MARU for display type
authorgiwoong.kim <giwoong.kim@samsung.com>
Mon, 23 Jul 2012 06:38:59 +0000 (15:38 +0900)
committergiwoong.kim <giwoong.kim@samsung.com>
Mon, 23 Jul 2012 06:38:59 +0000 (15:38 +0900)
[Type]
[Module] Emulator / display
[Priority] major
[Jira#]
[Redmine#]
[Problem]
[Cause]
[Solution]
[TestCase]

sysemu.h
vl.c

index 0362e5f5b7a75cbb5aac2d363e07b97a84bb9af0..338a07335666b3823623776b095b1fb7818d5cb7 100644 (file)
--- a/sysemu.h
+++ b/sysemu.h
@@ -82,6 +82,9 @@ typedef enum DisplayType
     DT_CURSES,
     DT_SDL,
     DT_NOGRAPHIC,
+#ifdef CONFIG_MARU
+    DT_MARU,
+#endif
     DT_NONE,
 } DisplayType;
 
diff --git a/vl.c b/vl.c
index 2a7795677cc9a69218dbdc3d6bd7176c9d7a592d..da0c5184aa2d00e9fd3ba8e5041a5aa5f1c852ca 100644 (file)
--- a/vl.c
+++ b/vl.c
@@ -3563,7 +3563,10 @@ int main(int argc, char **argv, char **envp)
     if (using_spice)
         display_remote++;
     if (display_type == DT_DEFAULT && !display_remote) {
-#if defined(CONFIG_SDL) || defined(CONFIG_COCOA)
+#if defined(CONFIG_MARU)
+        /* maru display */
+        display_type = DT_MARU;
+#elif defined(CONFIG_SDL) || defined(CONFIG_COCOA)
         display_type = DT_SDL;
 #elif defined(CONFIG_VNC)
         vnc_display = "localhost:0,to=99";
@@ -3585,24 +3588,22 @@ int main(int argc, char **argv, char **envp)
 #endif
 #if defined(CONFIG_SDL)
     case DT_SDL:
-#if defined(CONFIG_MARU)
-            /* use tizen qemu sdl */
-            maruskin_display_init(ds);
-
-            if (skin_disabled == 1) {
-                //do not start skin client process
-                set_emul_skin_enable(0);
-            } else {
-                set_emul_skin_enable(1);
-            }
-#else
-            sdl_display_init(ds, full_screen, no_frame);
-#endif
+        sdl_display_init(ds, full_screen, no_frame);
         break;
 #elif defined(CONFIG_COCOA)
     case DT_SDL:
         cocoa_display_init(ds, full_screen);
         break;
+#endif
+#if defined(CONFIG_MARU)
+    case DT_MARU:
+        maruskin_display_init(ds);
+        if (skin_disabled == 1) {
+            set_emul_skin_enable(0);
+        } else {
+            set_emul_skin_enable(1);
+        }
+        break;
 #endif
     default:
         break;