From c2184f9bf38ebb5d63a7d12f1638b1018887725d Mon Sep 17 00:00:00 2001 From: Samuel Mannehed Date: Fri, 20 Dec 2019 16:06:48 +0100 Subject: [PATCH] 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. --- java/com/tigervnc/vncviewer/OptionsDialog.java | 2 +- vncviewer/OptionsDialog.cxx | 2 +- 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; -- 2.39.5