From 91ada9808408fcad818ced7309f47c5fb91c6075 Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Sat, 30 Jul 2011 11:39:05 +0200 Subject: [PATCH] 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 --- ui/sdl.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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; -- 2.39.2