[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [COMMIT ae28834] fix sdl window resize
From: |
Anthony Liguori |
Subject: |
[Qemu-commits] [COMMIT ae28834] fix sdl window resize |
Date: |
Mon, 10 Aug 2009 21:48:14 -0000 |
From: Stefano Stabellini <address@hidden>
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 <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>
Message-Id:
diff --git a/sdl.c b/sdl.c
index 238ef08..36fb07f 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;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-commits] [COMMIT ae28834] fix sdl window resize,
Anthony Liguori <=