]> git.proxmox.com Git - mirror_qemu.git/commitdiff
win32/sdl: Fix toggle full screen
authorHerve Poussineau <hpoussin@reactos.org>
Sun, 24 Jan 2010 21:18:36 +0000 (21:18 +0000)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 26 Jan 2010 22:28:46 +0000 (16:28 -0600)
Toggle full screen on Win32/SDL 1.2.13 was broken by commit
c18a2c360e3100bbd71162cf922dcd8c429a8b71. Re-add the call to
do_sdl_resize() which was removed in this revision

Signed-off-by: Herve Poussineau <hpoussin@reactos.org>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
sdl.c

diff --git a/sdl.c b/sdl.c
index 33173105ac6f8d97e2efc219eeeee854cffce68a..cf27ad2c1468678670561b6c1a6f0863a82c733e 100644 (file)
--- a/sdl.c
+++ b/sdl.c
@@ -525,6 +525,7 @@ static void sdl_send_mouse_event(int dx, int dy, int dz, int x, int y, int state
 static void toggle_full_screen(DisplayState *ds)
 {
     gui_fullscreen = !gui_fullscreen;
+    do_sdl_resize(real_screen->w, real_screen->h, real_screen->format->BitsPerPixel);
     if (gui_fullscreen) {
         scaling_active = 0;
         gui_saved_grab = gui_grab;