Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MXzAa-0004LG-JB for qemu-devel@nongnu.org; Mon, 03 Aug 2009 11:09:49 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MXzAU-0004KS-Mf for qemu-devel@nongnu.org; Mon, 03 Aug 2009 11:09:47 -0400 Received: from [199.232.76.173] (port=40234 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MXzAT-0004KN-Nf for qemu-devel@nongnu.org; Mon, 03 Aug 2009 11:09:42 -0400 Received: from smtp.eu.citrix.com ([62.200.22.115]:47712) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MXzAT-0000ey-AP for qemu-devel@nongnu.org; Mon, 03 Aug 2009 11:09:41 -0400 Date: Mon, 3 Aug 2009 16:10:43 +0100 From: Stefano Stabellini Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Subject: [Qemu-devel] [PATCH] fix sdl window resize List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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 --- sdl.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/sdl.c b/sdl.c index 50a4a01..823afbb 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; -- 1.5.4.3