diff options
author | Pierre Ossman <ossman@cendio.se> | 2015-02-12 14:57:05 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2015-02-13 13:20:49 +0100 |
commit | 4daa7b1172cd4606b60f8245831bc5aa155c4b9e (patch) | |
tree | 4d0a439961e932448456c2ad64866d8936d1cfee /common/rfb/EncodeManager.cxx | |
parent | eef5516854cdc466daed1e1a817bb41bc264027d (diff) | |
download | tigervnc-4daa7b1172cd4606b60f8245831bc5aa155c4b9e.tar.gz tigervnc-4daa7b1172cd4606b60f8245831bc5aa155c4b9e.zip |
Default compression level should be interpreted as high
Diffstat (limited to 'common/rfb/EncodeManager.cxx')
-rw-r--r-- | common/rfb/EncodeManager.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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; |