From 4c7e185a971bbc93ed4469c0442dfaeeda513982 Mon Sep 17 00:00:00 2001 From: Christian Beier Date: Thu, 15 Mar 2012 19:46:57 +0100 Subject: [PATCH] Move tightsubsamplevel member to the end of rfbClient struct. Try to not break ABI between releases. Even if the code gets ugly... --- rfb/rfb.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/rfb/rfb.h b/rfb/rfb.h index 0d11357..91dea83 100644 --- a/rfb/rfb.h +++ b/rfb/rfb.h @@ -599,10 +599,6 @@ typedef struct _rfbClientRec { #if defined(LIBVNCSERVER_HAVE_LIBJPEG) || defined(LIBVNCSERVER_HAVE_LIBPNG) int tightCompressLevel; #endif -#ifdef LIBVNCSERVER_HAVE_TURBOVNC - /* TurboVNC Encoding support (extends TightVNC) */ - int tightSubsampLevel; -#endif #endif /* Ultra Encoding support */ @@ -677,6 +673,10 @@ typedef struct _rfbClientRec { int afterEncBufLen; #if defined(LIBVNCSERVER_HAVE_LIBZ) || defined(LIBVNCSERVER_HAVE_LIBPNG) uint32_t tightEncoding; /* rfbEncodingTight or rfbEncodingTightPng */ +#ifdef LIBVNCSERVER_HAVE_TURBOVNC + /* TurboVNC Encoding support (extends TightVNC) */ + int tightSubsampLevel; +#endif #endif #ifdef LIBVNCSERVER_WITH_WEBSOCKETS