Revert "vnc: set the right prefered encoding"
This patch was wrong, because the loop was already reversed,so the first encoding was correctly set at the end of the loopp.
This reverts commit 14eb8b6829ad9dee7035de729e083844a425f274.
Signed-off-by: Corentin Chary <corentincj@iksaif.net>...
vnc: explain why set_encodings loop is reversed
Add a small comment to explain why we need to start fromthe end of the array to set the right prefered encoding.
Signed-off-by: Corentin Chary <corentincj@iksaif.net>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
vnc: really call zlib if we want zlib
send_framebuffer_update() was calling hextile instead of zlibsince commit 70a4568fe0c5a64adaa3da5030b7109e5199e692.
vnc: only use a single zlib stream
According to http://tigervnc.org/cgi-bin/rfbproto#zlib-encodingzlib encoding only uses a single stream. Current implementation defines4 streams but only uses the first one. Remove them and only use a singlestream.
vnc: adjust compression zstream level
Adjust zlib compression level if needed by calling deflateParams.
vnc: don't clear zlib stream on set_encoding
On init, values are already NULL, but we shouldn't tryto reset them each time a client send a set encodingcommand because this break everything. For example,libvncclient re-send a set encoding command if the...
vnc: add buffer_free()
Add a buffer_free() helper to free vnc buffers andremove some duplicated code in vnc_disconnect_finish().
vnc: remove a memory leak in zlib
Makes sure we free all ressources used in zlib encoding (zlib streamand buffer).
ioapic: improve debugging
Add a DPRINTF macro, use it also to see irq deliveries.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Fix leul_to_cpu on big endian hosts
Commit 213acd2e introduced leul_to_cpu with a special code path for big endianhosts. Unfortunately that code used preprocessor magic that didn't work.
This patch replaces the explicit ##s by glue() which is proven to work reliably,...
View all revisions | View revisions
Also available in: Atom