]> source.dussan.org Git - tigervnc.git/commitdiff
[java viewer] fixed incorrect offset value in custom compression setting from gui...
authorBrian Hinz <bphinz@users.sourceforge.net>
Wed, 25 May 2011 20:11:21 +0000 (20:11 +0000)
committerBrian Hinz <bphinz@users.sourceforge.net>
Wed, 25 May 2011 20:11:21 +0000 (20:11 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4445 3789f03b-4d11-0410-bbf8-ca57d06f2519

java/src/com/tigervnc/vncviewer/CConn.java

index a85c0bc8b6ab511e455e1a53785260373716850e..5e2e51ee4961e781eddb462cb71aa61627685ec5 100644 (file)
@@ -658,10 +658,10 @@ public class CConn extends CConnection
     options.raw.setSelected(currentEncoding == Encodings.encodingRaw);\r
 \r
     options.customCompressLevel.setSelected(viewer.customCompressLevel.getValue());\r
-    digit = -1 + viewer.compressLevel.getValue();\r
+    digit = 0 + viewer.compressLevel.getValue();\r
     options.compressLevel.setSelectedIndex(digit);\r
     options.noJpeg.setSelected(!viewer.noJpeg.getValue());\r
-    digit = -1 + viewer.qualityLevel.getValue();\r
+    digit = 0 + viewer.qualityLevel.getValue();\r
     options.qualityLevel.setSelectedIndex(digit);\r
 \r
     options.viewOnly.setSelected(viewer.viewOnly.getValue());\r