sdl: Initialization stubs
This reduces the number of CONFIG_SDL #ifdefs in vl.c. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
1 parent
674ec68693
commit
476db0814d
2 files changed
+18
-4
No files matched your search
@@ -4251,11 +4251,10 @@ int main(int argc, char **argv, char **envp)
|
||||
early_gtk_display_init(request_opengl);
|
||||
}
|
||||
#endif
|
||||
#if defined(CONFIG_SDL)
|
||||
if (display_type == DT_SDL) {
|
||||
sdl_display_early_init(request_opengl);
|
||||
}
|
||||
#endif
|
||||
|
||||
if (request_opengl == 1 && display_opengl == 0) {
|
||||
#if defined(CONFIG_OPENGL)
|
||||
error_report("OpenGL is not supported by the display");
|
||||
@@ -4543,11 +4542,10 @@ int main(int argc, char **argv, char **envp)
|
||||
case DT_CURSES:
|
||||
curses_display_init(ds, full_screen);
|
||||
break;
|
||||
#if defined(CONFIG_SDL)
|
||||
case DT_SDL:
|
||||
sdl_display_init(ds, full_screen, no_frame);
|
||||
break;
|
||||
#elif defined(CONFIG_COCOA)
|
||||
#if defined(CONFIG_COCOA)
|
||||
case DT_COCOA:
|
||||
cocoa_display_init(ds, full_screen);
|
||||
break;
|
||||
|
||||
Reference in new issue
Block a user