From: Pierre Ossman Date: Wed, 11 Mar 2009 14:33:49 +0000 (+0000) Subject: The quality setting goes from 0 to 9, not 1 to 9. X-Git-Tag: v0.0.90~130 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3d2ccc4b63f8694f0cae87c5f12afb5b4b749084;p=tigervnc.git 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 --- 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);