]> git.proxmox.com Git - spiceterm.git/commitdiff
clear surface after resize
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 8 Oct 2013 09:53:53 +0000 (11:53 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 8 Oct 2013 09:53:53 +0000 (11:53 +0200)
screen.c

index 265d986c5150dd670b66ac2e0f928163d0755c85..a23745052360f22f0750d8216f313768a0b3483a 100644 (file)
--- a/screen.c
+++ b/screen.c
@@ -359,7 +359,6 @@ create_primary_surface(SpiceScreen *spice_screen, uint32_t width,
     if (width > MAX_WIDTH)
         width = MAX_WIDTH;
 
-
     surface.format     = SPICE_SURFACE_FMT_32_xRGB;
     surface.width      = spice_screen->primary_width = width;
     surface.height     = spice_screen->primary_height = height;
@@ -390,6 +389,8 @@ spice_screen_resize(SpiceScreen *spice_screen, uint32_t width,
     qxl_worker->destroy_primary_surface(qxl_worker, 0);
 
     create_primary_surface(spice_screen, width, height);
+
+    spice_screen_clear(spice_screen, 0, 0, width, height);
 }