From 3d9a5639838d18e790586f0acc294fdf7ebadd74 Mon Sep 17 00:00:00 2001 From: dscho Date: Thu, 31 Jan 2008 11:52:25 +0000 Subject: Move tightQualityLevel out of the JPEG specific part The variable tightQualityLevel is used for ZYWRLE compression, too, so if libjpeg is not present, but libz is, we still need to have that struct member. Signed-off-by: Johannes Schindelin --- rfb/rfb.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'rfb') diff --git a/rfb/rfb.h b/rfb/rfb.h index aed454c..4f3a664 100644 --- a/rfb/rfb.h +++ b/rfb/rfb.h @@ -525,6 +525,8 @@ typedef struct _rfbClientRec { struct z_stream_s compStream; rfbBool compStreamInited; uint32_t zlibCompressLevel; + /* the quality level is also used by ZYWRLE */ + int tightQualityLevel; #ifdef LIBVNCSERVER_HAVE_LIBJPEG /* tight encoding -- preserve zlib streams' state for each client */ @@ -532,7 +534,6 @@ typedef struct _rfbClientRec { rfbBool zsActive[4]; int zsLevel[4]; int tightCompressLevel; - int tightQualityLevel; #endif #endif -- cgit v1.1