2
0
mirror of git://git.proxmox.com/git/spiceterm.git synced 2025-08-30 21:55:20 +00:00

clear surface after resize

This commit is contained in:
Dietmar Maurer
2013-10-08 11:53:53 +02:00
parent ead260d74d
commit 27441de63d

View File

@@ -359,7 +359,6 @@ create_primary_surface(SpiceScreen *spice_screen, uint32_t width,
if (width > MAX_WIDTH) if (width > MAX_WIDTH)
width = MAX_WIDTH; width = MAX_WIDTH;
surface.format = SPICE_SURFACE_FMT_32_xRGB; surface.format = SPICE_SURFACE_FMT_32_xRGB;
surface.width = spice_screen->primary_width = width; surface.width = spice_screen->primary_width = width;
surface.height = spice_screen->primary_height = height; 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); qxl_worker->destroy_primary_surface(qxl_worker, 0);
create_primary_surface(spice_screen, width, height); create_primary_surface(spice_screen, width, height);
spice_screen_clear(spice_screen, 0, 0, width, height);
} }