Change encoding and quality defaults to what auto mode would choose.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@3663 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/unix/vncviewer/CConn.cxx b/unix/vncviewer/CConn.cxx
index db36489..4a1aeb0 100644
--- a/unix/vncviewer/CConn.cxx
+++ b/unix/vncviewer/CConn.cxx
@@ -54,7 +54,7 @@
: dpy(dpy_), argc(argc_),
argv(argv_), serverHost(0), serverPort(0), sock(sock_), viewport(0),
desktop(0), desktopEventHandler(0),
- currentEncoding(encodingZRLE), lastServerEncoding((unsigned int)-1),
+ currentEncoding(encodingTight), lastServerEncoding((unsigned int)-1),
fullColour(::fullColour),
autoSelect(::autoSelect), shared(::shared), formatChange(false),
encodingChange(false), sameMachine(false), fullScreen(::fullScreen),
diff --git a/unix/vncviewer/vncviewer.cxx b/unix/vncviewer/vncviewer.cxx
index 8b9fea4..dc49430 100644
--- a/unix/vncviewer/vncviewer.cxx
+++ b/unix/vncviewer/vncviewer.cxx
@@ -121,7 +121,7 @@
IntParameter qualityLevel("QualityLevel",
"JPEG quality level. "
"0 = Low, 9 = High",
- 6);
+ 8);
char aboutText[1024];
char* programName;
diff --git a/win/vncviewer/CConnOptions.cxx b/win/vncviewer/CConnOptions.cxx
index 7bf36eb..cb56193 100644
--- a/win/vncviewer/CConnOptions.cxx
+++ b/win/vncviewer/CConnOptions.cxx
@@ -115,7 +115,7 @@
static IntParameter qualityLevel("QualityLevel",
"JPEG quality level. "
"0 = Low, 9 = High",
- 6);
+ 8);
static BoolParameter autoScaling("AutoScaling",
"Auto rescale local copy of the remote desktop to the client window.",
@@ -130,7 +130,7 @@
fullScreen(::fullScreen),
fullColour(::fullColour),
lowColourLevel(::lowColourLevel),
-preferredEncoding(encodingZRLE),
+preferredEncoding(encodingTight),
autoSelect(::autoSelect),
shared(::sharedConnection),
sendPtrEvents(::sendPtrEvents),
@@ -154,7 +154,7 @@
passwordFile(::passwordFile.getData())
{
if (autoSelect) {
- preferredEncoding = encodingZRLE;
+ preferredEncoding = encodingTight;
} else {
CharArray encodingName(::preferredEncoding.getData());
preferredEncoding = encodingNum(encodingName.buf);