diff options
author | Pierre Ossman <ossman@cendio.se> | 2014-09-17 17:11:56 +0200 |
---|---|---|
committer | Pierre Ossman <ossman@cendio.se> | 2014-09-18 14:08:42 +0200 |
commit | 487008102e35ccbde59c54500700ba2b85f981c2 (patch) | |
tree | 6585b5fddd2d7a9ec272b53cd28aaa083c8e8b55 /common/rfb/EncodeManager.cxx | |
parent | 1ec4531ca6b37db1fa9b9cc5d5db289be32d4241 (diff) | |
download | tigervnc-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.cxx | 2 |
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 |