diff options
author | Peter Åstrand <astrand@cendio.se> | 2004-12-28 15:55:46 +0000 |
---|---|---|
committer | Peter Åstrand <astrand@cendio.se> | 2004-12-28 15:55:46 +0000 |
commit | 0b8702662a873bb8a9bd78fdfb5a6d6c2a14a928 (patch) | |
tree | 4a0395e988c7a20aabe2dec771a28faf8f5cecb9 /vncviewer/OptionsDialog.cxx | |
parent | 142e84dafdcaa7d3be8596317f3941e461b592a3 (diff) | |
download | tigervnc-0b8702662a873bb8a9bd78fdfb5a6d6c2a14a928.tar.gz tigervnc-0b8702662a873bb8a9bd78fdfb5a6d6c2a14a928.zip |
Added new parameter NoJPEG, hooked up with GUI
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@57 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'vncviewer/OptionsDialog.cxx')
-rw-r--r-- | vncviewer/OptionsDialog.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vncviewer/OptionsDialog.cxx b/vncviewer/OptionsDialog.cxx index 49a19c30..4ff4600c 100644 --- a/vncviewer/OptionsDialog.cxx +++ b/vncviewer/OptionsDialog.cxx @@ -93,12 +93,14 @@ public: case encodingHextile: setItemChecked(IDC_ENCODING_HEXTILE, true); break; case encodingRaw: setItemChecked(IDC_ENCODING_RAW, true); break; } + setItemChecked(IDC_ALLOW_JPEG, !dlg->options.noJpeg); setItemInt(IDC_QUALITYLEVEL, dlg->options.qualityLevel); onCommand(IDC_ENCODING_AUTO, 0 /* ? */); // Force enableItem status to refresh } virtual bool onOk() { dlg->options.autoSelect = isItemChecked(IDC_ENCODING_AUTO); dlg->options.fullColour = isItemChecked(IDC_FORMAT_FULLCOLOUR); + dlg->options.noJpeg = !isItemChecked(IDC_ALLOW_JPEG); dlg->options.qualityLevel = getItemInt(IDC_QUALITYLEVEL); if (isItemChecked(IDC_FORMAT_VERYLOWCOLOUR)) dlg->options.lowColourLevel = 0; |