Browse Source

Use the correct maximum value for compression lvl

The GUI incorrectly noted the max level to be 6 while it in fact is 9.
tags/v1.10.90
Samuel Mannehed 4 years ago
parent
commit
4e61f8dbc5
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      java/com/tigervnc/vncviewer/OptionsDialog.java
  2. 1
    1
      vncviewer/OptionsDialog.cxx

+ 1
- 1
java/com/tigervnc/vncviewer/OptionsDialog.java View File

compressionInput.setPrototypeDisplayValue("0."); compressionInput.setPrototypeDisplayValue("0.");
compressionInput.setEditable(true); compressionInput.setEditable(true);
JLabel compressionLabel = JLabel compressionLabel =
new JLabel("Level (1=fast, 6=best)");
new JLabel("Level (1=fast, 9=best)");
jpegCheckbox = new JCheckBox("Allow JPEG Compression"); jpegCheckbox = new JCheckBox("Allow JPEG Compression");
jpegCheckbox.addItemListener(new ItemListener() { jpegCheckbox.addItemListener(new ItemListener() {
public void itemStateChanged(ItemEvent e) { public void itemStateChanged(ItemEvent e) {

+ 1
- 1
vncviewer/OptionsDialog.cxx View File



compressionInput = new Fl_Int_Input(tx + INDENT, ty, compressionInput = new Fl_Int_Input(tx + INDENT, ty,
INPUT_HEIGHT, INPUT_HEIGHT, INPUT_HEIGHT, INPUT_HEIGHT,
_("level (1=fast, 6=best)"));
_("level (1=fast, 9=best)"));
compressionInput->align(FL_ALIGN_RIGHT); compressionInput->align(FL_ALIGN_RIGHT);
ty += INPUT_HEIGHT + INNER_MARGIN; ty += INPUT_HEIGHT + INNER_MARGIN;



Loading…
Cancel
Save