提交 91ada980 编写于 作者: J Jan Kiszka 提交者: Anthony Liguori

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: NJan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
上级 941f511a
...@@ -97,9 +97,12 @@ static void do_sdl_resize(int new_width, int new_height, int bpp) ...@@ -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); // printf("resizing to %d %d\n", w, h);
flags = SDL_HWSURFACE|SDL_ASYNCBLIT|SDL_HWACCEL|SDL_RESIZABLE; flags = SDL_HWSURFACE | SDL_ASYNCBLIT | SDL_HWACCEL;
if (gui_fullscreen) if (gui_fullscreen) {
flags |= SDL_FULLSCREEN; flags |= SDL_FULLSCREEN;
} else {
flags |= SDL_RESIZABLE;
}
if (gui_noframe) if (gui_noframe)
flags |= SDL_NOFRAME; flags |= SDL_NOFRAME;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册