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.3~3 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a6601dafcc9be8a59c910b7f0391653bcdddfed1;p=tigervnc.git Default compression level should be interpreted as high (cherry picked from commit 4daa7b1172cd4606b60f8245831bc5aa155c4b9e) --- diff --git a/common/rfb/EncodeManager.cxx b/common/rfb/EncodeManager.cxx index 8e328a1c..a9a4781e 100644 --- a/common/rfb/EncodeManager.cxx +++ b/common/rfb/EncodeManager.cxx @@ -482,7 +482,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;