diff options
| author | Gerd Hoffmann <kraxel@redhat.com> | 2018-01-15 16:48:55 +0100 |
|---|---|---|
| committer | Gerd Hoffmann <kraxel@redhat.com> | 2018-01-25 15:22:28 +0100 |
| commit | 04ff1a398a8d6e912eceaca9b62af0a09e927d63 (patch) | |
| tree | 4f266bec33ecb608dae4feb9bcc2c0bd0d1a4ca1 /include/ui/console.h | |
| parent | f8d2c9369b8302f65f4f43f14ed3987c2268a02a (diff) | |
| download | focaccia-qemu-04ff1a398a8d6e912eceaca9b62af0a09e927d63.tar.gz focaccia-qemu-04ff1a398a8d6e912eceaca9b62af0a09e927d63.zip | |
sdl: reorganize -no-frame support
Drop no_frame flag from sdl_display_init argument list, use a global variable instead. This is temporary until -no-frame support is dropped altogether when we remove sdl1 support. Remove any traces of noframe from sdl2 code. It is just dead code as sdl2 doesn't support the SDL_NOFRAME window flag any more. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Message-id: 20180115154855.30850-3-kraxel@redhat.com
Diffstat (limited to 'include/ui/console.h')
| -rw-r--r-- | include/ui/console.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/include/ui/console.h b/include/ui/console.h index 580dfc57ee..7b35778444 100644 --- a/include/ui/console.h +++ b/include/ui/console.h @@ -436,7 +436,7 @@ 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, int no_frame); +void sdl_display_init(DisplayState *ds, int full_screen); #else static inline void sdl_display_early_init(int opengl) { @@ -444,8 +444,7 @@ static inline void sdl_display_early_init(int opengl) error_report("SDL support is disabled"); abort(); } -static inline void sdl_display_init(DisplayState *ds, int full_screen, - int no_frame) +static inline void sdl_display_init(DisplayState *ds, int full_screen) { /* This must never be called if CONFIG_SDL is disabled */ error_report("SDL support is disabled"); |