Commit 9f554fcd authored by Vagn Johansen's avatar Vagn Johansen

Set FBU.bytes to 1 in encHandlers.COPYRECT

FBU.bytes must be set before return false to indicate that the FBU
header has been read. If not set then "if (FBU.bytes == 0) { ..}"
in framebufferUpdate will be entered and the copyrect header will
be interpreted as a new FBU leading to a "unsupported encoding"
disconnect error.
parent 7c1cd937
...@@ -1126,6 +1126,7 @@ encHandlers.COPYRECT = function display_copy_rect() { ...@@ -1126,6 +1126,7 @@ encHandlers.COPYRECT = function display_copy_rect() {
var old_x, old_y; var old_x, old_y;
FBU.bytes = 1;
if (ws.rQwait("COPYRECT", 4)) { return false; } if (ws.rQwait("COPYRECT", 4)) { return false; }
display.renderQ_push({ display.renderQ_push({
'type': 'copy', 'type': 'copy',
......
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