Skip to contentSkip to conversation

win32/sdl: Fix toggle full screen

PATCH Applied Herve Poussineau 2 participants 2 messages Jan 24, 2010 – Jan 27, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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

---
 sdl.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
sdl.c +1 -0
index 034440f..7912c91 100644
@@ -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;
Signature · 1 line
1.6.0.2.GIT
#1 lore raw
Quoted 6 lines · 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

Applied. Thanks.

Regards,

Anthony Liguori

Quoted 17 lines
---
  sdl.c |    1 +
  1 files changed, 1 insertions(+), 0 deletions(-)
sdl.c +1 -0
index 034440f..7912c91 100644
@@ -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;