summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>2009-08-03 16:10:43 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2009-08-27 21:23:37 -0500
commit91730df4fbd51e04bafe3cab28c18f50ede9309f (patch)
tree9b677696802d45c800e33597897ae75ba67cfac7
parent4fca9293dc0275829834fa09d7b50588244e599d (diff)
downloadqemu-91730df4fbd51e04bafe3cab28c18f50ede9309f.tar.gz
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.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sdl.c b/sdl.c
index 3be4d9698f..a8f5edf989 100644
--- a/sdl.c
+++ b/sdl.c
@@ -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;