summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sdl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sdl.c b/sdl.c
index 238ef085c..36fb07f22 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;