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>
This commit is contained in:
parent
941f511a26
commit
91ada98084
7
ui/sdl.c
7
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user