From a2cdd2b02b2fdeed8ef9399b273bc19f2858c363 Mon Sep 17 00:00:00 2001 From: Peter Åstrand Date: Sun, 19 Dec 2004 16:14:47 +0000 Subject: 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 --- vncviewer/OptionsDialog.cxx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'vncviewer/OptionsDialog.cxx') 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); -- cgit v1.2.3