aboutsummaryrefslogtreecommitdiffstats
path: root/common/rfb/EncodeManager.cxx
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2014-09-17 17:11:56 +0200
committerPierre Ossman <ossman@cendio.se>2014-09-18 14:08:42 +0200
commit487008102e35ccbde59c54500700ba2b85f981c2 (patch)
tree6585b5fddd2d7a9ec272b53cd28aaa083c8e8b55 /common/rfb/EncodeManager.cxx
parent1ec4531ca6b37db1fa9b9cc5d5db289be32d4241 (diff)
downloadtigervnc-487008102e35ccbde59c54500700ba2b85f981c2.tar.gz
tigervnc-487008102e35ccbde59c54500700ba2b85f981c2.zip
Move preferred encoding tracking into a server object
Having it in ConnParams made the linker pull all the encoder objects into vncviewer, making it larger than necessary and giving it extra parameters in its help output that weren't relevant.
Diffstat (limited to 'common/rfb/EncodeManager.cxx')
-rw-r--r--common/rfb/EncodeManager.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/rfb/EncodeManager.cxx b/common/rfb/EncodeManager.cxx
index 1bd00c7f..ca60da48 100644
--- a/common/rfb/EncodeManager.cxx
+++ b/common/rfb/EncodeManager.cxx
@@ -164,7 +164,7 @@ void EncodeManager::prepareEncoders()
indexed = indexedRLE = fullColour = encoderRaw;
// Try to respect the client's wishes
- preferred = conn->cp.preferredEncoding();
+ preferred = conn->getPreferredEncoding();
switch (preferred) {
case encodingRRE:
// Horrible for anything high frequency and/or lots of colours