diff options
author | steven_carr <steven_carr> | 2006-05-15 05:37:39 +0000 |
---|---|---|
committer | steven_carr <steven_carr> | 2006-05-15 05:37:39 +0000 |
commit | ccdbe8f3256c3c776a1cc1a0517a38437b9e2c65 (patch) | |
tree | 9853559d1c965946b196cccd03ce0f466d524950 /libvncserver/zlib.c | |
parent | 347c4a98475d1dba8030efe33aa0b35856c4d17f (diff) | |
download | libtdevnc-ccdbe8f3256c3c776a1cc1a0517a38437b9e2c65.tar.gz libtdevnc-ccdbe8f3256c3c776a1cc1a0517a38437b9e2c65.zip |
The great UltraVNC Compatibility Commit
Diffstat (limited to 'libvncserver/zlib.c')
-rw-r--r-- | libvncserver/zlib.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libvncserver/zlib.c b/libvncserver/zlib.c index 321d86f..56bcc6e 100644 --- a/libvncserver/zlib.c +++ b/libvncserver/zlib.c @@ -121,6 +121,7 @@ rfbSendOneRectEncodingZlib(rfbClientPtr cl, zlibAfterBuf = (char *)realloc(zlibAfterBuf, zlibAfterBufSize); } + /* * Convert pixel data to client format. */ @@ -176,9 +177,8 @@ rfbSendOneRectEncodingZlib(rfbClientPtr cl, */ /* Update statics */ - cl->rectanglesSent[rfbEncodingZlib]++; - cl->bytesSent[rfbEncodingZlib] += (sz_rfbFramebufferUpdateRectHeader - + sz_rfbZlibHeader + zlibAfterBufLen); + rfbStatRecordEncodingSent(cl, rfbEncodingZlib, sz_rfbFramebufferUpdateRectHeader + sz_rfbZlibHeader + zlibAfterBufLen, + + w * (cl->format.bitsPerPixel / 8) * h); if (cl->ublen + sz_rfbFramebufferUpdateRectHeader + sz_rfbZlibHeader > UPDATE_BUF_SIZE) |