diff options
author | dscho <dscho> | 2003-07-28 12:01:07 +0000 |
---|---|---|
committer | dscho <dscho> | 2003-07-28 12:01:07 +0000 |
commit | 13b358fed1b89a7a7f8c47bc175dcb3ccae1e39b (patch) | |
tree | 8ca17b27e8b953403b93625381aa162d734c4287 /tight.c | |
parent | eef408c1d84c7aaceb9732dd9a7e216886d2c2f8 (diff) | |
download | libtdevnc-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.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; } |