aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Mannehed <samuel@cendio.se>2019-12-20 16:06:48 +0100
committerSamuel Mannehed <samuel@cendio.se>2019-12-20 16:06:48 +0100
commitc2184f9bf38ebb5d63a7d12f1638b1018887725d (patch)
treeca6b72d829adfec61f16da59750dd26e4db13e73
parent4e61f8dbc51f83b1d71319b763fbd4d916d13e98 (diff)
downloadtigervnc-c2184f9bf38ebb5d63a7d12f1638b1018887725d.tar.gz
tigervnc-c2184f9bf38ebb5d63a7d12f1638b1018887725d.zip
Use the correct minimum value for compression lvl
There was even some confusion in the RFB protocol regarding this, but the zlib implementation confirms that accepted values for compression level is 0-9.
-rw-r--r--java/com/tigervnc/vncviewer/OptionsDialog.java2
-rw-r--r--vncviewer/OptionsDialog.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/java/com/tigervnc/vncviewer/OptionsDialog.java b/java/com/tigervnc/vncviewer/OptionsDialog.java
index fa22a4f0..b245be93 100644
--- a/java/com/tigervnc/vncviewer/OptionsDialog.java
+++ b/java/com/tigervnc/vncviewer/OptionsDialog.java
@@ -691,7 +691,7 @@ class OptionsDialog extends Dialog {
compressionInput.setPrototypeDisplayValue("0.");
compressionInput.setEditable(true);
JLabel compressionLabel =
- new JLabel("Level (1=fast, 9=best)");
+ new JLabel("Level (0=fast, 9=best)");
jpegCheckbox = new JCheckBox("Allow JPEG Compression");
jpegCheckbox.addItemListener(new ItemListener() {
public void itemStateChanged(ItemEvent e) {
diff --git a/vncviewer/OptionsDialog.cxx b/vncviewer/OptionsDialog.cxx
index f03f7dbd..ada5b288 100644
--- a/vncviewer/OptionsDialog.cxx
+++ b/vncviewer/OptionsDialog.cxx
@@ -551,7 +551,7 @@ void OptionsDialog::createCompressionPage(int tx, int ty, int tw, int th)
compressionInput = new Fl_Int_Input(tx + INDENT, ty,
INPUT_HEIGHT, INPUT_HEIGHT,
- _("level (1=fast, 9=best)"));
+ _("level (0=fast, 9=best)"));
compressionInput->align(FL_ALIGN_RIGHT);
ty += INPUT_HEIGHT + INNER_MARGIN;