summaryrefslogtreecommitdiffstats
path: root/libvncserver/rfbserver.c
diff options
context:
space:
mode:
authordscho <dscho>2005-01-25 12:58:09 +0000
committerdscho <dscho>2005-01-25 12:58:09 +0000
commit914f7b71c5af96add7d99fd0dcdcf9ee33099cd6 (patch)
treee084b7b240076bf0037c2e15a9e062d92d3bc98e /libvncserver/rfbserver.c
parentbbab31583e3ce92b18a2719da80fb1dfcbde7f58 (diff)
downloadlibtdevnc-914f7b71c5af96add7d99fd0dcdcf9ee33099cd6.tar.gz
libtdevnc-914f7b71c5af96add7d99fd0dcdcf9ee33099cd6.zip
10l: really fix preferredEncoding set from outside
Diffstat (limited to 'libvncserver/rfbserver.c')
-rw-r--r--libvncserver/rfbserver.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libvncserver/rfbserver.c b/libvncserver/rfbserver.c
index 79670bb..f4bc42b 100644
--- a/libvncserver/rfbserver.c
+++ b/libvncserver/rfbserver.c
@@ -283,7 +283,7 @@ rfbNewTCPOrUDPClient(rfbScreen,sock,isUDP)
cl->reverseConnection = FALSE;
cl->readyForSetColourMapEntries = FALSE;
cl->useCopyRect = FALSE;
- cl->preferredEncoding = rfbEncodingRaw;
+ cl->preferredEncoding = -1;
cl->correMaxWidth = 48;
cl->correMaxHeight = 48;
#ifdef LIBVNCSERVER_HAVE_LIBZ
@@ -1331,6 +1331,7 @@ rfbSendFramebufferUpdate(cl, givenUpdateRegion)
+ w * (cl->format.bitsPerPixel / 8) * h);
switch (cl->preferredEncoding) {
+ case -1:
case rfbEncodingRaw:
if (!rfbSendRectEncodingRaw(cl, x, y, w, h))
goto updateFailed;