From 58883432eb410cddbd2d7980ffd5780f84f6223f Mon Sep 17 00:00:00 2001 From: Joel Martin Date: Wed, 6 Jul 2011 14:54:16 -0500 Subject: [PATCH] vnc: disable 'tight png' when not --enable-vnc-png Unless --enable-vnc-png is set, the server should not register support for the tight PNG encoding. Otherwise, since tight PNG shares the same code as the normal tight encoding, the server will send tight encoded frames (that contain zlib data) when tight PNG is requested by the client. Signed-off-by: Joel Martin --- ui/vnc.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/ui/vnc.c b/ui/vnc.c index 14f2930..ebf0baa 100644 --- a/ui/vnc.c +++ b/ui/vnc.c @@ -1721,10 +1721,12 @@ static void set_encodings(VncState *vs, int32_t *encodings, size_t n_encodings) vs->features |= VNC_FEATURE_TIGHT_MASK; vs->vnc_encoding = enc; break; +#ifdef CONFIG_VNC_PNG case VNC_ENCODING_TIGHT_PNG: vs->features |= VNC_FEATURE_TIGHT_PNG_MASK; vs->vnc_encoding = enc; break; +#endif case VNC_ENCODING_ZLIB: vs->features |= VNC_FEATURE_ZLIB_MASK; vs->vnc_encoding = enc; -- 1.7.1