From: Pierre Ossman Date: Thu, 12 Feb 2015 13:57:05 +0000 (+0100) Subject: Default compression level should be interpreted as high X-Git-Tag: v1.4.90~47^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4daa7b1172cd4606b60f8245831bc5aa155c4b9e;p=tigervnc.git Default compression level should be interpreted as high --- diff --git a/common/rfb/EncodeManager.cxx b/common/rfb/EncodeManager.cxx index 3142ec0e..e6323870 100644 --- a/common/rfb/EncodeManager.cxx +++ b/common/rfb/EncodeManager.cxx @@ -624,7 +624,7 @@ void EncodeManager::writeSubRect(const Rect& rect, const PixelBuffer *pb) // Special exception inherited from the Tight encoder if (activeEncoders[encoderFullColour] == encoderTightJPEG) { - if (conn->cp.compressLevel < 2) + if ((conn->cp.compressLevel != -1) && (conn->cp.compressLevel < 2)) maxColours = 24; else maxColours = 96;