diff options
Diffstat (limited to 'common/rfb')
-rw-r--r-- | common/rfb/CMsgWriter.cxx | 4 | ||||
-rw-r--r-- | common/rfb/ConnParams.cxx | 11 | ||||
-rw-r--r-- | common/rfb/ConnParams.h | 2 |
3 files changed, 3 insertions, 14 deletions
diff --git a/common/rfb/CMsgWriter.cxx b/common/rfb/CMsgWriter.cxx index 0ebd33e7..9ee7a02f 100644 --- a/common/rfb/CMsgWriter.cxx +++ b/common/rfb/CMsgWriter.cxx @@ -114,9 +114,9 @@ void CMsgWriter::writeSetEncodings(int preferredEncoding, bool useCopyRect) } } - if (cp->customCompressLevel && cp->compressLevel >= 0 && cp->compressLevel <= 9) + if (cp->compressLevel >= 0 && cp->compressLevel <= 9) encodings[nEncodings++] = pseudoEncodingCompressLevel0 + cp->compressLevel; - if (!cp->noJpeg && cp->qualityLevel >= 0 && cp->qualityLevel <= 9) + if (cp->qualityLevel >= 0 && cp->qualityLevel <= 9) encodings[nEncodings++] = pseudoEncodingQualityLevel0 + cp->qualityLevel; writeSetEncodings(nEncodings, encodings); diff --git a/common/rfb/ConnParams.cxx b/common/rfb/ConnParams.cxx index be9d48c0..6fd6668e 100644 --- a/common/rfb/ConnParams.cxx +++ b/common/rfb/ConnParams.cxx @@ -36,8 +36,7 @@ ConnParams::ConnParams() supportsDesktopRename(false), supportsLastRect(false), supportsSetDesktopSize(false), supportsFence(false), supportsContinuousUpdates(false), - customCompressLevel(false), compressLevel(2), - noJpeg(false), qualityLevel(-1), fineQualityLevel(-1), + compressLevel(2), qualityLevel(-1), fineQualityLevel(-1), subsampling(subsampleUndefined), name_(0), currentEncoding_(encodingRaw), verStrPos(0) { @@ -95,9 +94,7 @@ void ConnParams::setEncodings(int nEncodings, const rdr::S32* encodings) supportsExtendedDesktopSize = false; supportsLocalXCursor = false; supportsLastRect = false; - customCompressLevel = false; compressLevel = -1; - noJpeg = true; qualityLevel = -1; fineQualityLevel = -1; subsampling = subsampleUndefined; @@ -167,10 +164,4 @@ void ConnParams::setEncodings(int nEncodings, const rdr::S32* encodings) if (Encoder::supported(encodings[i])) currentEncoding_ = encodings[i]; } - - if (compressLevel != -1) - customCompressLevel = true; - if ((qualityLevel != -1) || (fineQualityLevel != -1) || - (subsampling != subsampleUndefined)) - noJpeg = false; } diff --git a/common/rfb/ConnParams.h b/common/rfb/ConnParams.h index 68e20754..43267ffd 100644 --- a/common/rfb/ConnParams.h +++ b/common/rfb/ConnParams.h @@ -91,9 +91,7 @@ namespace rfb { bool supportsFence; bool supportsContinuousUpdates; - bool customCompressLevel; int compressLevel; - bool noJpeg; int qualityLevel; int fineQualityLevel; int subsampling; |