mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06: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:
parent
0c8d706532
commit
fe91f36aa5
5 changed files with 50 additions and 28 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue