From ce8d6c2409ca15f0fb5800b1c2c0a03e86683fc2 Mon Sep 17 00:00:00 2001 From: dscho Date: Wed, 30 Jan 2008 20:38:51 +0000 Subject: Make ZYWRLE thread-safe for multiple clients ZYWRLE used a static buffer, which does not work too well if you have more than one client in a threaded server. Instead, we have the data in the client structure now. Signed-off-by: Johannes Schindelin --- rfb/rfb.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'rfb') diff --git a/rfb/rfb.h b/rfb/rfb.h index 0dad2b9..aed454c 100644 --- a/rfb/rfb.h +++ b/rfb/rfb.h @@ -579,6 +579,8 @@ typedef struct _rfbClientRec { #ifdef LIBVNCSERVER_HAVE_LIBZ void* zrleData; + int zywrleLevel; + int zywrleBuf[rfbZRLETileWidth * rfbZRLETileHeight]; #endif /* if progressive updating is on, this variable holds the current -- cgit v1.1