From 03ad9b0b0376a74455804b58c3cab5456a457922 Mon Sep 17 00:00:00 2001 From: dscho Date: Tue, 15 Jun 2004 13:20:49 +0000 Subject: [PATCH] recognize more encodings --- libvncclient/rfbproto.c | 6 ++++++ 1 file changed, 6 insertions(+) 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);