diff options
author | Pierre Ossman <ossman@cendio.se> | 2009-03-11 14:33:49 +0000 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2009-03-11 14:33:49 +0000 |
commit | 3d2ccc4b63f8694f0cae87c5f12afb5b4b749084 (patch) | |
tree | fa97d04ed5e6a705890836c065dd721ea6770ded /common/rfb | |
parent | d27f13b29bcce114a59c5dd08ae784afd6cb6f20 (diff) | |
download | tigervnc-3d2ccc4b63f8694f0cae87c5f12afb5b4b749084.tar.gz tigervnc-3d2ccc4b63f8694f0cae87c5f12afb5b4b749084.zip |
The quality setting goes from 0 to 9, not 1 to 9.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3659 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'common/rfb')
-rw-r--r-- | common/rfb/CMsgWriter.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/rfb/CMsgWriter.cxx b/common/rfb/CMsgWriter.cxx index 8948cbdd..094ba368 100644 --- a/common/rfb/CMsgWriter.cxx +++ b/common/rfb/CMsgWriter.cxx @@ -80,7 +80,7 @@ void CMsgWriter::writeSetEncodings(int preferredEncoding, bool useCopyRect) encodings[nEncodings++] = pseudoEncodingLastRect; if (cp->customCompressLevel && cp->compressLevel >= 0 && cp->compressLevel <= 9) encodings[nEncodings++] = pseudoEncodingCompressLevel0 + cp->compressLevel; - if (!cp->noJpeg && cp->qualityLevel >= 1 && cp->qualityLevel <= 9) + if (!cp->noJpeg && cp->qualityLevel >= 0 && cp->qualityLevel <= 9) encodings[nEncodings++] = pseudoEncodingQualityLevel0 + cp->qualityLevel; writeSetEncodings(nEncodings, encodings); |