From b52f5cd6c9594c7afb4accde179b24eb23340a73 Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Sun, 19 Jul 2020 16:58:55 +0000 Subject: [PATCH] Resize tight encoder on frame resize --- src/server.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/server.c b/src/server.c index 4db59d7..f03bfea 100644 --- a/src/server.c +++ b/src/server.c @@ -1052,6 +1052,8 @@ static int send_desktop_resize(struct nvnc_client* client, struct nvnc_fb* fb) client->known_width = fb->width; client->known_height = fb->height; + tight_encoder_resize(&client->tight_encoder, fb->width, fb->height); + pixman_region_union_rect(&client->damage, &client->damage, 0, 0, fb->width, fb->height);