From 5bc5f4b2d184aa196b9168190e92be3a8d1208f8 Mon Sep 17 00:00:00 2001 From: Ramon de Klein Date: Thu, 6 Nov 2014 13:11:46 +0100 Subject: [PATCH] Fixed issue causing backgrounds to appear with random colors. --- include/rfb.js | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/include/rfb.js b/include/rfb.js index 0afe656d..ee5e0a35 100644 --- a/include/rfb.js +++ b/include/rfb.js @@ -1491,14 +1491,9 @@ var RFB; // We know the encoding and have a whole tile this._FBU.subencoding = rQ[rQi]; rQi++; - if (this._FBU.subencoding === 0) { - if (this._FBU.lastsubencoding & 0x01) { - // Weird: ignore blanks are RAW - Util.Debug(" Ignoring blank after RAW"); - } else { - this._display.fillRect(x, y, w, h, rQ, rQi); - rQi += this._FBU.bytes - 1; - } + if ((this._FBU.subencoding === 0) && (this._FBU.lastsubencoding & 0x01)) { + // Weird: ignore blanks are RAW + Util.Debug(" Ignoring blank after RAW"); } else if (this._FBU.subencoding & 0x01) { // Raw this._display.blitImage(x, y, w, h, rQ, rQi); rQi += this._FBU.bytes - 1;