Commit c95456c0 authored by Joel Martin's avatar Joel Martin

rfb.js: skip tight when true color is disabled.

Generally this means falling back to 8-bit colour mapped hextile which
is uses more bandwidth and is likely slower that tight with 24-bit
true color.

This is related to this query:
http://superuser.com/questions/484790/how-to-use-8-bit-mode-with-novnc
parent 73ee4fa7
......@@ -1674,6 +1674,11 @@ clientEncodings = function() {
if ((encodings[i][0] === "Cursor") &&
(! conf.local_cursor)) {
Util.Debug("Skipping Cursor pseudo-encoding");
// TODO: remove this when we have tight+non-true-color
} else if ((encodings[i][0] === "TIGHT") &&
(! conf.true_color)) {
Util.Warn("Skipping tight, only support with true color");
} else {
//Util.Debug("Adding encoding: " + encodings[i][0]);
encList.push(encodings[i][1]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment