]> source.dussan.org Git - tigervnc.git/commitdiff
The quality setting goes from 0 to 9, not 1 to 9.
authorPierre Ossman <ossman@cendio.se>
Wed, 11 Mar 2009 14:33:49 +0000 (14:33 +0000)
committerPierre Ossman <ossman@cendio.se>
Wed, 11 Mar 2009 14:33:49 +0000 (14:33 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3659 3789f03b-4d11-0410-bbf8-ca57d06f2519

common/rfb/CMsgWriter.cxx

index 8948cbdda0460bd95d721e8c25edd10ac2c1fac4..094ba368ae1cfe5979bb290a99eb677936182895 100644 (file)
@@ -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);