aboutsummaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2018-01-15 16:48:55 +0100
committerGerd Hoffmann <kraxel@redhat.com>2018-01-25 15:22:28 +0100
commit04ff1a398a8d6e912eceaca9b62af0a09e927d63 (patch)
tree4f266bec33ecb608dae4feb9bcc2c0bd0d1a4ca1 /vl.c
parentf8d2c9369b8302f65f4f43f14ed3987c2268a02a (diff)
downloadqemu-04ff1a398a8d6e912eceaca9b62af0a09e927d63.zip
qemu-04ff1a398a8d6e912eceaca9b62af0a09e927d63.tar.gz
qemu-04ff1a398a8d6e912eceaca9b62af0a09e927d63.tar.bz2
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 'vl.c')
-rw-r--r--vl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vl.c b/vl.c
index e725ecb..6ab2320 100644
--- a/vl.c
+++ b/vl.c
@@ -150,7 +150,7 @@ static int rtc_date_offset = -1; /* -1 means no change */
QEMUClockType rtc_clock;
int vga_interface_type = VGA_NONE;
static int full_screen = 0;
-static int no_frame = 0;
+int no_frame;
int no_quit = 0;
static bool grab_on_hover;
Chardev *serial_hds[MAX_SERIAL_PORTS];
@@ -4694,7 +4694,7 @@ int main(int argc, char **argv, char **envp)
curses_display_init(ds, full_screen);
break;
case DT_SDL:
- sdl_display_init(ds, full_screen, no_frame);
+ sdl_display_init(ds, full_screen);
break;
case DT_COCOA:
cocoa_display_init(ds, full_screen);