diff options
author | Adam Tkac <atkac@redhat.com> | 2009-10-07 15:24:29 +0000 |
---|---|---|
committer | Adam Tkac <atkac@redhat.com> | 2009-10-07 15:24:29 +0000 |
commit | 24b930f1b87ac1c57d28fbee56cdb7305e725238 (patch) | |
tree | 7b644cb764e9b81cc066afa9736a1e968f0d25d6 | |
parent | 6851e25886b86ab0f4279774ddf1639c9c05f3f2 (diff) | |
download | tigervnc-24b930f1b87ac1c57d28fbee56cdb7305e725238.tar.gz tigervnc-24b930f1b87ac1c57d28fbee56cdb7305e725238.zip |
[Bugfix] Default -FullColor to 0 when -AutoSelect=0 and -LowColorLevel= are used.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/branches/1_0@3909 3789f03b-4d11-0410-bbf8-ca57d06f2519
-rw-r--r-- | unix/vncviewer/vncviewer.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/unix/vncviewer/vncviewer.cxx b/unix/vncviewer/vncviewer.cxx index 4a47788e..5a4ee37d 100644 --- a/unix/vncviewer/vncviewer.cxx +++ b/unix/vncviewer/vncviewer.cxx @@ -337,6 +337,13 @@ int main(int argc, char** argv) && !::fullColour.hasBeenSet() && !::fullColourAlias.hasBeenSet()); } + if (!::fullColour.hasBeenSet() && !::fullColourAlias.hasBeenSet()) { + // Default to FullColor=0 if AutoSelect=0 && LowColorLevel is set + if (!::autoSelect && (::lowColourLevel.hasBeenSet() || + ::lowColourLevelAlias.hasBeenSet())) { + ::fullColour.setParam(false); + } + } if (!::customCompressLevel.hasBeenSet()) { // Default to CustomCompressLevel=1 if CompressLevel is used. ::customCompressLevel.setParam(::compressLevel.hasBeenSet()); |