mirror of
https://github.com/mii443/qemu.git
synced 2025-12-16 17:18:49 +00:00
sdl: use DisplayOptions
Switch sdl ui to use qapi DisplayOptions for configuration. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-id: 20180202111022.19269-6-kraxel@redhat.com Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
@@ -431,16 +431,16 @@ void surface_gl_setup_viewport(QemuGLShader *gls,
|
||||
|
||||
/* sdl.c */
|
||||
#ifdef CONFIG_SDL
|
||||
void sdl_display_early_init(int opengl);
|
||||
void sdl_display_init(DisplayState *ds, int full_screen);
|
||||
void sdl_display_early_init(DisplayOptions *opts);
|
||||
void sdl_display_init(DisplayState *ds, DisplayOptions *opts);
|
||||
#else
|
||||
static inline void sdl_display_early_init(int opengl)
|
||||
static inline void sdl_display_early_init(DisplayOptions *opts)
|
||||
{
|
||||
/* This must never be called if CONFIG_SDL is disabled */
|
||||
error_report("SDL support is disabled");
|
||||
abort();
|
||||
}
|
||||
static inline void sdl_display_init(DisplayState *ds, int full_screen)
|
||||
static inline void sdl_display_init(DisplayState *ds, DisplayOptions *opts)
|
||||
{
|
||||
/* This must never be called if CONFIG_SDL is disabled */
|
||||
error_report("SDL support is disabled");
|
||||
|
||||
Reference in New Issue
Block a user