Browse Source

Default compression level should be interpreted as high

tags/v1.4.90
Pierre Ossman 9 years ago
parent
commit
4daa7b1172
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      common/rfb/EncodeManager.cxx

+ 1
- 1
common/rfb/EncodeManager.cxx View 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;

Loading…
Cancel
Save