aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Hinz <bphinz@users.sourceforge.net>2011-08-17 14:37:41 +0000
committerBrian Hinz <bphinz@users.sourceforge.net>2011-08-17 14:37:41 +0000
commit12c81df882452e715e0cc1684b81ef347b6508fe (patch)
treeb2687acc3213bab86041f1eb096da6f0d31a3fce
parent9900972c43ccc9b57a01f4ad51d24ae838e8444d (diff)
downloadtigervnc-12c81df882452e715e0cc1684b81ef347b6508fe.tar.gz
tigervnc-12c81df882452e715e0cc1684b81ef347b6508fe.zip
Implement recommendations from low-level performance study into java client. Mirrors the changes made to the Fltk viewer in r4632.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4635 3789f03b-4d11-0410-bbf8-ca57d06f2519
-rw-r--r--java/src/com/tigervnc/vncviewer/OptionsDialog.java4
-rw-r--r--java/src/com/tigervnc/vncviewer/VncViewer.java4
2 files changed, 4 insertions, 4 deletions
diff --git a/java/src/com/tigervnc/vncviewer/OptionsDialog.java b/java/src/com/tigervnc/vncviewer/OptionsDialog.java
index f38a1e65..65af744e 100644
--- a/java/src/com/tigervnc/vncviewer/OptionsDialog.java
+++ b/java/src/com/tigervnc/vncviewer/OptionsDialog.java
@@ -87,9 +87,9 @@ class OptionsDialog extends Dialog implements
JPanel tightPanel = new JPanel(new GridBagLayout());
customCompressLevel = new JCheckBox("Custom Compression Level");
customCompressLevel.addItemListener(this);
- Object[] compressionLevels = { 1, 2, 3, 4, 5, 6, 7, 8, 9 };
+ Object[] compressionLevels = { 1, 2, 3, 4, 5, 6 };
compressLevel = new JComboBox(compressionLevels);
- JLabel compressionLabel = new JLabel("Level (1=fast, 9=best)");
+ JLabel compressionLabel = new JLabel("Level (1=fast, 6=best [4-6 are rarely useful])");
noJpeg = new JCheckBox("Allow JPEG Compression");
noJpeg.addItemListener(this);
Object[] qualityLevels = { 1, 2, 3, 4, 5, 6, 7, 8, 9 };
diff --git a/java/src/com/tigervnc/vncviewer/VncViewer.java b/java/src/com/tigervnc/vncviewer/VncViewer.java
index 384c5f2b..119b6adc 100644
--- a/java/src/com/tigervnc/vncviewer/VncViewer.java
+++ b/java/src/com/tigervnc/vncviewer/VncViewer.java
@@ -253,8 +253,8 @@ public class VncViewer extends java.applet.Applet implements Runnable
IntParameter compressLevel
= new IntParameter("CompressLevel",
"Use specified compression level "+
- "0 = Low, 9 = High",
- 6);
+ "0 = Low, 6 = High",
+ 1);
BoolParameter noJpeg
= new BoolParameter("NoJPEG",
"Disable lossy JPEG compression in Tight encoding.", false);