diff options
author | Peter Åstrand <astrand@cendio.se> | 2004-12-19 16:14:47 +0000 |
---|---|---|
committer | Peter Åstrand <astrand@cendio.se> | 2004-12-19 16:14:47 +0000 |
commit | a2cdd2b02b2fdeed8ef9399b273bc19f2858c363 (patch) | |
tree | 6388c2453e07f9ecc757efcda77a6d1d2984de59 /vncviewer/OptionsDialog.cxx | |
parent | 64aeddf7c6ea886253b3daba6807fed00c53e445 (diff) | |
download | tigervnc-a2cdd2b02b2fdeed8ef9399b273bc19f2858c363.tar.gz tigervnc-a2cdd2b02b2fdeed8ef9399b273bc19f2858c363.zip |
Now possible to select tight encoding in win32 vncviewer GUI
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@46 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'vncviewer/OptionsDialog.cxx')
-rw-r--r-- | vncviewer/OptionsDialog.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/vncviewer/OptionsDialog.cxx b/vncviewer/OptionsDialog.cxx index ab45f8ce..93e7f0c7 100644 --- a/vncviewer/OptionsDialog.cxx +++ b/vncviewer/OptionsDialog.cxx @@ -88,6 +88,7 @@ public: } } switch (dlg->options.preferredEncoding) { + case encodingTight: setItemChecked(IDC_ENCODING_TIGHT, true); break; case encodingZRLE: setItemChecked(IDC_ENCODING_ZRLE, true); break; case encodingHextile: setItemChecked(IDC_ENCODING_HEXTILE, true); break; case encodingRaw: setItemChecked(IDC_ENCODING_RAW, true); break; @@ -103,7 +104,9 @@ public: dlg->options.lowColourLevel = 1; if (isItemChecked(IDC_FORMAT_MEDIUMCOLOUR)) dlg->options.lowColourLevel = 2; - dlg->options.preferredEncoding = encodingZRLE; + dlg->options.preferredEncoding = encodingTight; + if (isItemChecked(IDC_ENCODING_ZRLE)) + dlg->options.preferredEncoding = encodingZRLE; if (isItemChecked(IDC_ENCODING_HEXTILE)) dlg->options.preferredEncoding = encodingHextile; if (isItemChecked(IDC_ENCODING_RAW)) @@ -114,6 +117,7 @@ public: virtual bool onCommand(int id, int cmd) { if (id == IDC_ENCODING_AUTO) { bool ok = !isItemChecked(IDC_ENCODING_AUTO); + enableItem(IDC_ENCODING_TIGHT, ok); enableItem(IDC_ENCODING_ZRLE, ok); enableItem(IDC_ENCODING_HEXTILE, ok); enableItem(IDC_ENCODING_RAW, ok); |