mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -06:00
vnc: don't clear zlib stream on set_encoding
On init, values are already NULL, but we shouldn't try to reset them each time a client send a set encoding command because this break everything. For example, libvncclient re-send a set encoding command if the framebuffer is resized. This fix framebuffer resizing for zlib encoding. Signed-off-by: Corentin Chary <corentincj@iksaif.net> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
9f643ec0f8
commit
78c98c7870
3 changed files with 0 additions and 7 deletions
|
@ -140,8 +140,3 @@ void vnc_zlib_send_framebuffer_update(VncState *vs, int x, int y, int w, int h)
|
|||
vnc_write_u32(vs, bytes_written);
|
||||
vs->output.offset = new_offset;
|
||||
}
|
||||
|
||||
void vnc_zlib_init(VncState *vs)
|
||||
{
|
||||
vs->zlib_stream.opaque = NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue