From: Brian Hinz Date: Wed, 25 May 2011 20:11:21 +0000 (+0000) Subject: [java viewer] fixed incorrect offset value in custom compression setting from gui... X-Git-Tag: v1.1.90~333 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bf7e3b53d166996559b85c1a812ee63e436b1a46;p=tigervnc.git [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 --- 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());