mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
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
This commit is contained in:
parent
f8d2c9369b
commit
04ff1a398a
5 changed files with 9 additions and 17 deletions
|
@ -38,7 +38,6 @@ static int gui_grab; /* if true, all keyboard/mouse events are grabbed */
|
|||
|
||||
static int gui_saved_grab;
|
||||
static int gui_fullscreen;
|
||||
static int gui_noframe;
|
||||
static int gui_key_modifier_pressed;
|
||||
static int gui_keysym;
|
||||
static int gui_grab_code = KMOD_LALT | KMOD_LCTRL;
|
||||
|
@ -767,7 +766,7 @@ 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)
|
||||
{
|
||||
int flags;
|
||||
uint8_t data = 0;
|
||||
|
@ -775,10 +774,6 @@ void sdl_display_init(DisplayState *ds, int full_screen, int no_frame)
|
|||
int i;
|
||||
SDL_SysWMinfo info;
|
||||
|
||||
if (no_frame) {
|
||||
gui_noframe = 1;
|
||||
}
|
||||
|
||||
#ifdef __linux__
|
||||
/* on Linux, SDL may use fbcon|directfb|svgalib when run without
|
||||
* accessible $DISPLAY to open X11 window. This is often the case
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue