summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordscho <dscho>2004-06-15 13:20:49 +0000
committerdscho <dscho>2004-06-15 13:20:49 +0000
commit03ad9b0b0376a74455804b58c3cab5456a457922 (patch)
tree68d42165e233e0d2d0765f99868ac6bb72496085
parente70c3be7362db1c2860a6cff84bdb47394788ef2 (diff)
downloadlibtdevnc-03ad9b0b0376a74455804b58c3cab5456a457922.tar.gz
libtdevnc-03ad9b0b0376a74455804b58c3cab5456a457922.zip
recognize more encodings
-rw-r--r--libvncclient/rfbproto.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libvncclient/rfbproto.c b/libvncclient/rfbproto.c
index 235708e..c30c46b 100644
--- a/libvncclient/rfbproto.c
+++ b/libvncclient/rfbproto.c
@@ -432,6 +432,12 @@ SetFormatAndEncodings(rfbClient* client)
encs[se->nEncodings++] = rfbClientSwap32IfLE(rfbEncodingZlib);
if (client->appData.compressLevel >= 0 && client->appData.compressLevel <= 9)
requestCompressLevel = TRUE;
+ } else if (strncasecmp(encStr,"zlibhex",encStrLen) == 0) {
+ encs[se->nEncodings++] = rfbClientSwap32IfLE(rfbEncodingZlibHex);
+ if (client->appData.compressLevel >= 0 && client->appData.compressLevel <= 9)
+ requestCompressLevel = TRUE;
+ } else if (strncasecmp(encStr,"zrle",encStrLen) == 0) {
+ encs[se->nEncodings++] = rfbClientSwap32IfLE(rfbEncodingZRLE);
#endif
} else if (strncasecmp(encStr,"corre",encStrLen) == 0) {
encs[se->nEncodings++] = rfbClientSwap32IfLE(rfbEncodingCoRRE);