qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] fix sdl window resize
@ 2009-08-03 15:10 Stefano Stabellini
  2009-08-03 21:22 ` Luiz Capitulino
  0 siblings, 1 reply; 2+ messages in thread
From: Stefano Stabellini @ 2009-08-03 15:10 UTC (permalink / raw)
  To: qemu-devel

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>

---
 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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Qemu-devel] [PATCH] fix sdl window resize
  2009-08-03 15:10 [Qemu-devel] [PATCH] fix sdl window resize Stefano Stabellini
@ 2009-08-03 21:22 ` Luiz Capitulino
  0 siblings, 0 replies; 2+ messages in thread
From: Luiz Capitulino @ 2009-08-03 21:22 UTC (permalink / raw)
  To: Stefano Stabellini; +Cc: qemu-devel

On Mon, 3 Aug 2009 16:10:43 +0100
Stefano Stabellini <stefano.stabellini@eu.citrix.com> wrote:

> 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>

 This ones fixes the crash for me, thanks a lot.

Tested-by: Luiz Capitulino <lcapitulino@redhat.com>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-08-03 21:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-03 15:10 [Qemu-devel] [PATCH] fix sdl window resize Stefano Stabellini
2009-08-03 21:22 ` Luiz Capitulino

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).