aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorBrian Hinz <bphinz@users.sourceforge.net>2011-05-25 20:11:21 +0000
committerBrian Hinz <bphinz@users.sourceforge.net>2011-05-25 20:11:21 +0000
commitbf7e3b53d166996559b85c1a812ee63e436b1a46 (patch)
tree0bd0783dfaf8ec0467a7af3e1624ae39020bed2b /java
parent4e7271e060c2b0c9be9649692f0c608604ea545a (diff)
downloadtigervnc-bf7e3b53d166996559b85c1a812ee63e436b1a46.tar.gz
tigervnc-bf7e3b53d166996559b85c1a812ee63e436b1a46.zip
[java viewer] fixed incorrect offset value in custom compression setting from gui. also fixed typo in makefile.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4445 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'java')
-rw-r--r--java/src/com/tigervnc/vncviewer/CConn.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/src/com/tigervnc/vncviewer/CConn.java b/java/src/com/tigervnc/vncviewer/CConn.java
index a85c0bc8..5e2e51ee 100644
--- a/java/src/com/tigervnc/vncviewer/CConn.java
+++ b/java/src/com/tigervnc/vncviewer/CConn.java
@@ -658,10 +658,10 @@ public class CConn extends CConnection
options.raw.setSelected(currentEncoding == Encodings.encodingRaw);
options.customCompressLevel.setSelected(viewer.customCompressLevel.getValue());
- digit = -1 + viewer.compressLevel.getValue();
+ digit = 0 + viewer.compressLevel.getValue();
options.compressLevel.setSelectedIndex(digit);
options.noJpeg.setSelected(!viewer.noJpeg.getValue());
- digit = -1 + viewer.qualityLevel.getValue();
+ digit = 0 + viewer.qualityLevel.getValue();
options.qualityLevel.setSelectedIndex(digit);
options.viewOnly.setSelected(viewer.viewOnly.getValue());