diff options
author | Stefano Stabellini <stefano.stabellini@eu.citrix.com> | 2009-08-03 16:10:43 +0100 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-08-10 13:05:31 -0500 |
commit | ae2883471b8975417a8d15464b433e8b4e41e97e (patch) | |
tree | 052cb180b1b9b8c7d28e4766ec9e97e906548828 | |
parent | 2430ffe4c855d782b157fafd0cd561d7c1561c2f (diff) |
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.
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Message-Id:
-rw-r--r-- | sdl.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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; |