mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
vnc: refresh lossy rect after a given timeout
If an adaptive encoding has choosen to send a lossy update based on the result of vnc_update_freq(), then it should advertise it with vnc_sent_lossy_rect(). This will allow to automatically refresh this rect once it's static again. Signed-off-by: Corentin Chary <corentincj@iksaif.net> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
999342a0fe
commit
7d964c9d2f
3 changed files with 69 additions and 3 deletions
|
@ -166,6 +166,7 @@ static void vnc_async_encoding_start(VncState *orig, VncState *local)
|
|||
local->features = orig->features;
|
||||
local->ds = orig->ds;
|
||||
local->vd = orig->vd;
|
||||
local->lossy_rect = orig->lossy_rect;
|
||||
local->write_pixels = orig->write_pixels;
|
||||
local->clientds = orig->clientds;
|
||||
local->tight = orig->tight;
|
||||
|
@ -182,6 +183,7 @@ static void vnc_async_encoding_end(VncState *orig, VncState *local)
|
|||
orig->tight = local->tight;
|
||||
orig->zlib = local->zlib;
|
||||
orig->hextile = local->hextile;
|
||||
orig->lossy_rect = local->lossy_rect;
|
||||
}
|
||||
|
||||
static int vnc_worker_thread_loop(VncJobQueue *queue)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue