This commit is contained in:
Adam Babik 2016-09-06 13:49:11 +00:00 committed by GitHub
commit 5220d69ce3
1 changed files with 9 additions and 7 deletions

View File

@ -2162,14 +2162,16 @@ var RFB;
// We have everything, render it
this._sock.rQskipBytes(1 + cl_header); // shift off clt + compact length
var img = new Image();
img.src = "data: image/" + cmode +
RFB.extract_data_uri(this._sock.rQshiftBytes(cl_data));
img.onload = function (img, x, y) {
this._display.renderQ_push({
'type': 'img',
'img': img,
'x': this._FBU.x,
'y': this._FBU.y
'x': x,
'y': y
});
}.bind(this, img, this._FBU.x, this._FBU.y);
img.src = "data:image/" + cmode +
RFB.extract_data_uri(this._sock.rQshiftBytes(cl_data));
img = null;
break;
case "filter":