summaryrefslogtreecommitdiffstats
path: root/tight.c
diff options
context:
space:
mode:
authordscho <dscho>2003-07-28 12:01:07 +0000
committerdscho <dscho>2003-07-28 12:01:07 +0000
commit13b358fed1b89a7a7f8c47bc175dcb3ccae1e39b (patch)
tree8ca17b27e8b953403b93625381aa162d734c4287 /tight.c
parenteef408c1d84c7aaceb9732dd9a7e216886d2c2f8 (diff)
downloadlibtdevnc-13b358fed1b89a7a7f8c47bc175dcb3ccae1e39b.tar.gz
libtdevnc-13b358fed1b89a7a7f8c47bc175dcb3ccae1e39b.zip
fixed maxRectsPerUpdate with Tight encoding bug; some autoconfing; stderr should not be used in a library (use rfbLog instead)
Diffstat (limited to 'tight.c')
-rw-r--r--tight.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tight.c b/tight.c
index 7bb7c69..4bbdd11 100644
--- a/tight.c
+++ b/tight.c
@@ -225,6 +225,8 @@ rfbSendRectEncodingTight(cl, x, y, w, h)
int x_best, y_best, w_best, h_best;
char *fbptr;
+ rfbSendUpdateBuf(cl);
+
compressLevel = cl->tightCompressLevel;
qualityLevel = cl->tightQualityLevel;
@@ -952,8 +954,8 @@ static Bool SendCompressedData(cl, compressedLen)
memcpy(&cl->updateBuf[cl->ublen], &tightAfterBuf[i], portionLen);
cl->ublen += portionLen;
}
- portionLen = UPDATE_BUF_SIZE;
cl->rfbBytesSent[rfbEncodingTight] += compressedLen;
+
return TRUE;
}