aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/vl.c b/vl.c
index 045b09f0b1..73de9c3854 100644
--- a/vl.c
+++ b/vl.c
@@ -5589,10 +5589,11 @@ int main(int argc, char **argv, char **envp)
if (vnc_display_open(ds, vnc_display) < 0)
exit(1);
}
- if (sdl || !vnc_display)
#if defined(CONFIG_SDL)
+ if (sdl || !vnc_display)
sdl_display_init(ds, full_screen, no_frame);
#elif defined(CONFIG_COCOA)
+ if (sdl || !vnc_display)
cocoa_display_init(ds, full_screen);
#endif
}