From 0fad0c11cef499b39cbcb14955a69751d7767cfb Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Mon, 11 Mar 2013 16:49:01 +0100 Subject: econproxy: Try to send Zlib data (also not supported :[) --- econproxy.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/econproxy.c b/econproxy.c index f1e55a1..ac65416 100644 --- a/econproxy.c +++ b/econproxy.c @@ -543,9 +543,10 @@ rfb_retrieve_framebuffer_update(struct ep *ep, } break; #endif -#if 0 +#if 1 /* seems to be not supported */ case 16: /* ZRLE */ + case 6: /* Zlib */ { uint32_t length; if (read(ep->vnc_fd, &length, sizeof length) < 0) @@ -684,13 +685,13 @@ rfb_init(struct ep *ep) uint8_t cmd; uint8_t padding; uint16_t number_of_encodings; - uint32_t encodings[3]; + uint32_t encodings[4]; } cmd_set_encodings = { - 2, 0, htons(3), -#if 1 - { htonl(0) /* RAW */, htonl(7) /* Tight */, htonl(16) /* ZRLE */ } + 2, 0, htons(4), +#if 0 + { htonl(0) /* RAW */, htonl(7) /* Tight */, htonl(6) /* Zlib */, htonl(16) /* ZRLE */ } #else - { htonl(7) /* Tight */, htonl(16) /* ZRLE */, htonl(0) /* RAW */ } + { htonl(6) /* Zlib */, htonl(7) /* Tight */, htonl(16) /* ZRLE */, htonl(0) /* RAW */ } #endif }; -- cgit