summaryrefslogtreecommitdiff
path: root/ui/sdl.c
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2011-07-30 11:39:05 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2011-08-05 10:57:34 -0500
commit91ada9808408fcad818ced7309f47c5fb91c6075 (patch)
tree719b44e8524381536458c98d1a582b29a2b0dbff /ui/sdl.c
parent941f511a26ebdfbeb53facc775f30b9d27f3855b (diff)
sdl: Do not make full screen mode resizable
This prevents continuous resizing events and improper screen setups when going full screen. CC: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'ui/sdl.c')
-rw-r--r--ui/sdl.c7
1 files 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;