]> source.dussan.org Git - tigervnc.git/commitdiff
Default compression level should be interpreted as high 119/head
authorPierre Ossman <ossman@cendio.se>
Thu, 12 Feb 2015 13:57:05 +0000 (14:57 +0100)
committerPierre Ossman <ossman@cendio.se>
Fri, 13 Feb 2015 12:20:49 +0000 (13:20 +0100)
common/rfb/EncodeManager.cxx

index 3142ec0ed769b2013385ace4cf336b86003e9c87..e6323870de5e75fae8e5a8af231b865d98bea839 100644 (file)
@@ -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;