From 848f874ca1f0910b092cb9b166548572ef83177b Mon Sep 17 00:00:00 2001 From: Herve Poussineau Date: Sun, 24 Jan 2010 21:18:36 +0000 Subject: [PATCH] win32/sdl: Fix toggle full screen 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 Signed-off-by: Anthony Liguori (cherry picked from commit a35aed57bf47584b5f55b71acf8daba19decf12a) --- sdl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sdl.c b/sdl.c index 034440f7215..7912c9159dc 100644 --- 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; -- 2.39.5