From: Jan Kiszka Date: Sat, 30 Jul 2011 09:39:05 +0000 (+0200) Subject: sdl: Do not make full screen mode resizable X-Git-Tag: v1.0-rc0~567^2~27 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=91ada9808408fcad818ced7309f47c5fb91c6075;p=qemu.git sdl: Do not make full screen mode resizable This prevents continuous resizing events and improper screen setups when going full screen. CC: Stefano Stabellini Signed-off-by: Jan Kiszka Signed-off-by: Anthony Liguori --- diff --git a/ui/sdl.c b/ui/sdl.c index 9efcda507..9a92b47f7 100644 --- a/ui/sdl.c +++ b/ui/sdl.c @@ -97,9 +97,12 @@ static void do_sdl_resize(int new_width, int new_height, int bpp) // printf("resizing to %d %d\n", w, h); - flags = SDL_HWSURFACE|SDL_ASYNCBLIT|SDL_HWACCEL|SDL_RESIZABLE; - if (gui_fullscreen) + flags = SDL_HWSURFACE | SDL_ASYNCBLIT | SDL_HWACCEL; + if (gui_fullscreen) { flags |= SDL_FULLSCREEN; + } else { + flags |= SDL_RESIZABLE; + } if (gui_noframe) flags |= SDL_NOFRAME;