From a6601dafcc9be8a59c910b7f0391653bcdddfed1 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Thu, 12 Feb 2015 14:57:05 +0100 Subject: [PATCH] Default compression level should be interpreted as high (cherry picked from commit 4daa7b1172cd4606b60f8245831bc5aa155c4b9e) --- common/rfb/EncodeManager.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5