From 4daa7b1172cd4606b60f8245831bc5aa155c4b9e 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 --- 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 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; -- 2.39.5