From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NZ9r8-000650-SX for qemu-devel@nongnu.org; Sun, 24 Jan 2010 16:18:50 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NZ9r4-00061Z-5B for qemu-devel@nongnu.org; Sun, 24 Jan 2010 16:18:50 -0500 Received: from [199.232.76.173] (port=41575 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NZ9r3-00061S-Sj for qemu-devel@nongnu.org; Sun, 24 Jan 2010 16:18:45 -0500 Received: from smtp3-g21.free.fr ([212.27.42.3]:39613) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NZ9r3-0002nS-Da for qemu-devel@nongnu.org; Sun, 24 Jan 2010 16:18:45 -0500 From: Herve Poussineau Date: Sun, 24 Jan 2010 21:18:36 +0000 Message-Id: <1264367916-2716-1-git-send-email-hpoussin@reactos.org> Content-Type: text/plain; charset="utf-8" Subject: [Qemu-devel] [PATCH] win32/sdl: Fix toggle full screen List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Herve Poussineau 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 --- sdl.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/sdl.c b/sdl.c index 034440f..7912c91 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; -- 1.6.0.2.GIT