diff options
author | Corentin Chary <corentincj@iksaif.net> | 2010-05-19 09:24:06 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2010-06-01 12:53:09 -0500 |
commit | 78c98c78705452e439f5b2ef5447ada23de9988e (patch) | |
tree | e1c7e3209e85adc5affa33cb87a21cdb535a2451 /vnc.c | |
parent | 9f643ec0f81c1836ce55319709dd387e27c55d3b (diff) | |
download | qemu-78c98c78705452e439f5b2ef5447ada23de9988e.zip |
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>
Diffstat (limited to 'vnc.c')
-rw-r--r-- | vnc.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -1642,7 +1642,6 @@ static void set_encodings(VncState *vs, int32_t *encodings, size_t n_encodings) int i; unsigned int enc = 0; - vnc_zlib_init(vs); vs->features = 0; vs->vnc_encoding = 0; vs->tight_compression = 9; |