diff options
| author | Peter Maydell <peter.maydell@linaro.org> | 2020-01-23 18:44:39 +0000 |
|---|---|---|
| committer | Peter Maydell <peter.maydell@linaro.org> | 2020-01-23 18:44:39 +0000 |
| commit | c0248b36d8d190933a43919b9f71013a255e866c (patch) | |
| tree | 18028f04470a505130913a135edf063a7e4849e6 /ui/vnc-enc-zrle.c | |
| parent | 6918ab2570bcf942651e69f7ad975e137679738b (diff) | |
| parent | a1e8853ed2acbda29a52533abc91b035b723952e (diff) | |
| download | focaccia-qemu-c0248b36d8d190933a43919b9f71013a255e866c.tar.gz focaccia-qemu-c0248b36d8d190933a43919b9f71013a255e866c.zip | |
Merge remote-tracking branch 'remotes/kraxel/tags/ui-20200123-pull-request' into staging
vnc: fix zlib compression artifacts. ui: add "none" to -display help. # gpg: Signature made Thu 23 Jan 2020 14:20:53 GMT # gpg: using RSA key 4CB6D8EED3E87138 # gpg: Good signature from "Gerd Hoffmann (work) <kraxel@redhat.com>" [full] # gpg: aka "Gerd Hoffmann <gerd@kraxel.org>" [full] # gpg: aka "Gerd Hoffmann (private) <kraxel@gmail.com>" [full] # Primary key fingerprint: A032 8CFF B93A 17A7 9901 FE7D 4CB6 D8EE D3E8 7138 * remotes/kraxel/tags/ui-20200123-pull-request: ui/console: Display the 'none' backend in '-display help' vnc: prioritize ZRLE compression over ZLIB Revert "vnc: allow fall back to RAW encoding" Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'ui/vnc-enc-zrle.c')
| -rw-r--r-- | ui/vnc-enc-zrle.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/vnc-enc-zrle.c b/ui/vnc-enc-zrle.c index 17fd28a2e2..b4f71e32cf 100644 --- a/ui/vnc-enc-zrle.c +++ b/ui/vnc-enc-zrle.c @@ -98,8 +98,8 @@ static int zrle_compress_data(VncState *vs, int level) /* set pointers */ zstream->next_in = vs->zrle->zrle.buffer; zstream->avail_in = vs->zrle->zrle.offset; - zstream->next_out = vs->zrle->zlib.buffer + vs->zrle->zlib.offset; - zstream->avail_out = vs->zrle->zlib.capacity - vs->zrle->zlib.offset; + zstream->next_out = vs->zrle->zlib.buffer; + zstream->avail_out = vs->zrle->zlib.capacity; zstream->data_type = Z_BINARY; /* start encoding */ |