aboutsummaryrefslogtreecommitdiffstats
path: root/vncviewer/OptionsDialog.cxx
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2011-07-14 14:34:09 +0000
committerPierre Ossman <ossman@cendio.se>2011-07-14 14:34:09 +0000
commitcf836f26245a13fc5e97065ebc5e486d2c0b216d (patch)
tree866397717cc97b6e935ee5e1cae23e9b2b6eeabe /vncviewer/OptionsDialog.cxx
parentaa336beee7dc0c4310ac00b6daff178ecd9101e1 (diff)
downloadtigervnc-cf836f26245a13fc5e97065ebc5e486d2c0b216d.tar.gz
tigervnc-cf836f26245a13fc5e97065ebc5e486d2c0b216d.zip
Managed to consistently get the colour levels reversed. Fix up everything so
that it behaves like documented. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4588 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'vncviewer/OptionsDialog.cxx')
-rw-r--r--vncviewer/OptionsDialog.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/vncviewer/OptionsDialog.cxx b/vncviewer/OptionsDialog.cxx
index d3928b50..191a311e 100644
--- a/vncviewer/OptionsDialog.cxx
+++ b/vncviewer/OptionsDialog.cxx
@@ -150,13 +150,13 @@ void OptionsDialog::loadOptions(void)
else {
switch (lowColourLevel) {
case 0:
- mediumcolorCheckbox->setonly();
+ verylowcolorCheckbox->setonly();
break;
case 1:
lowcolorCheckbox->setonly();
break;
case 2:
- verylowcolorCheckbox->setonly();
+ mediumcolorCheckbox->setonly();
break;
}
}
@@ -292,11 +292,11 @@ void OptionsDialog::storeOptions(void)
preferredEncoding.setParam(encodingName(encodingRaw));
fullColour.setParam(fullcolorCheckbox->value());
- if (mediumcolorCheckbox->value())
+ if (verylowcolorCheckbox->value())
lowColourLevel.setParam(0);
else if (lowcolorCheckbox->value())
lowColourLevel.setParam(1);
- else if (verylowcolorCheckbox->value())
+ else if (mediumcolorCheckbox->value())
lowColourLevel.setParam(2);
customCompressLevel.setParam(compressionCheckbox->value());