]> source.dussan.org Git - tigervnc.git/commitdiff
Use the correct minimum value for compression lvl
authorSamuel Mannehed <samuel@cendio.se>
Fri, 20 Dec 2019 15:06:48 +0000 (16:06 +0100)
committerSamuel Mannehed <samuel@cendio.se>
Fri, 20 Dec 2019 15:06:48 +0000 (16:06 +0100)
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.

java/com/tigervnc/vncviewer/OptionsDialog.java
vncviewer/OptionsDialog.cxx

index fa22a4f01b9c9cf9bb42d94063f2566c5862a3e2..b245be937343209b7499ed9e47ed3fd6c24b7999 100644 (file)
@@ -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) {
index f03f7dbd055eff187324a08e6136f3cd6ff1a1e5..ada5b288bea35ac4d092acc589e397eab68423ab 100644 (file)
@@ -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;