From 97299606daab079cd88a096308487341c113ccec Mon Sep 17 00:00:00 2001 From: dscho Date: Mon, 30 Aug 2004 15:45:58 +0000 Subject: global structures/functions should have "rfb", "sra" or "zrle" as prefix, while structure members should not --- libvncserver/zlib.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libvncserver/zlib.c') diff --git a/libvncserver/zlib.c b/libvncserver/zlib.c index 9905810..77e79c8 100644 --- a/libvncserver/zlib.c +++ b/libvncserver/zlib.c @@ -122,7 +122,7 @@ rfbSendOneRectEncodingZlib(cl, x, y, w, h) /* * Convert pixel data to client format. */ - (*cl->translateFn)(cl->translateLookupTable, &cl->screen->rfbServerFormat, + (*cl->translateFn)(cl->translateLookupTable, &cl->screen->serverFormat, &cl->format, fbptr, zlibBeforeBuf, cl->screen->paddedWidthInBytes, w, h); @@ -174,8 +174,8 @@ rfbSendOneRectEncodingZlib(cl, x, y, w, h) */ /* Update statics */ - cl->rfbRectanglesSent[rfbEncodingZlib]++; - cl->rfbBytesSent[rfbEncodingZlib] += (sz_rfbFramebufferUpdateRectHeader + cl->rectanglesSent[rfbEncodingZlib]++; + cl->bytesSent[rfbEncodingZlib] += (sz_rfbFramebufferUpdateRectHeader + sz_rfbZlibHeader + zlibAfterBufLen); if (cl->ublen + sz_rfbFramebufferUpdateRectHeader + sz_rfbZlibHeader -- cgit v1.2.1