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:
3
screen.c
3
screen.c
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user