diff options
author | Pierre Ossman <ossman@cendio.se> | 2014-03-17 14:42:10 +0100 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2014-07-07 13:27:09 +0200 |
commit | a22459d356be884aca3f4a1974de3e005da8ce7c (patch) | |
tree | aab8e831fd93b7038cfd1b25ed85645578d68d42 /common/rfb/ConnParams.cxx | |
parent | 6bcf137779ee884f27d53d667558524d3413812e (diff) | |
download | tigervnc-a22459d356be884aca3f4a1974de3e005da8ce7c.tar.gz tigervnc-a22459d356be884aca3f4a1974de3e005da8ce7c.zip |
Remove magic JPEG variables from ConnParams
Custom compression level and JPEG on/off are not inherent parts of
the protocol negotiation so they do not belong in ConnParams. Let the
UI frontend handle such things instead.
Diffstat (limited to 'common/rfb/ConnParams.cxx')
-rw-r--r-- | common/rfb/ConnParams.cxx | 11 |
1 files changed, 1 insertions, 10 deletions
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; } |