summaryrefslogtreecommitdiffstats
path: root/rfb
diff options
context:
space:
mode:
authordscho <dscho>2008-01-31 11:52:25 +0000
committerdscho <dscho>2008-01-31 11:52:25 +0000
commit3d9a5639838d18e790586f0acc294fdf7ebadd74 (patch)
treea86d139c20fab5e1be43134081db7dd19a7a55c7 /rfb
parentce8d6c2409ca15f0fb5800b1c2c0a03e86683fc2 (diff)
downloadlibtdevnc-3d9a5639838d18e790586f0acc294fdf7ebadd74.tar.gz
libtdevnc-3d9a5639838d18e790586f0acc294fdf7ebadd74.zip
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 <johannes.schindelin@gmx.de>
Diffstat (limited to 'rfb')
-rw-r--r--rfb/rfb.h3
1 files changed, 2 insertions, 1 deletions
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