From: Samuel Mannehed Date: Fri, 20 Dec 2019 15:06:48 +0000 (+0100) Subject: Use the correct minimum value for compression lvl X-Git-Tag: v1.10.90~72 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c2184f9bf38ebb5d63a7d12f1638b1018887725d;p=tigervnc.git 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. --- 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;