Resize tight encoder on frame resize

pull/42/head
Andri Yngvason 2020-07-19 16:58:55 +00:00
parent 76beec6415
commit b52f5cd6c9
1 changed files with 2 additions and 0 deletions

View File

@ -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);