Skip to contentSkip to conversation

fix sdl window resize

PATCH In review Stefano Stabellini 2 participants 2 messages Aug 3, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix sdl window resize

Hi all,
this patch fixes the sdl window resize event handler so that it doesn't require the emulated graphic card (or console.c) to call qemu_console_resize.

---
 sdl.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
sdl.c +4 -0
index 50a4a01..823afbb 100644
@@ -720,6 +720,10 @@ static void sdl_refresh(DisplayState *ds)
                 bpp = 32;
             do_sdl_resize(rev->w, rev->h, bpp);
             scaling_active = 1;
+            if (!is_buffer_shared(ds->surface)) {
+                ds->surface = qemu_resize_displaysurface(ds, ds_get_width(ds), ds_get_height(ds));
+                dpy_resize(ds);
+            }
             vga_hw_invalidate();
             vga_hw_update();
             break;
Signature · 1 line
1.5.4.3