From bf7e3b53d166996559b85c1a812ee63e436b1a46 Mon Sep 17 00:00:00 2001 From: Brian Hinz Date: Wed, 25 May 2011 20:11:21 +0000 Subject: [PATCH] [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 --- java/src/com/tigervnc/vncviewer/CConn.java | 4 ++-- 1 file 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()); -- 2.39.5