Fixed issue causing backgrounds to appear with random colors.

This commit is contained in:
Ramon de Klein 2014-11-06 13:11:46 +01:00
parent ec31f82eda
commit 5bc5f4b2d1
1 changed files with 3 additions and 8 deletions

View File

@ -1491,14 +1491,9 @@ var RFB;
// We know the encoding and have a whole tile // We know the encoding and have a whole tile
this._FBU.subencoding = rQ[rQi]; this._FBU.subencoding = rQ[rQi];
rQi++; rQi++;
if (this._FBU.subencoding === 0) { if ((this._FBU.subencoding === 0) && (this._FBU.lastsubencoding & 0x01)) {
if (this._FBU.lastsubencoding & 0x01) { // Weird: ignore blanks are RAW
// Weird: ignore blanks are RAW Util.Debug(" Ignoring blank after RAW");
Util.Debug(" Ignoring blank after RAW");
} else {
this._display.fillRect(x, y, w, h, rQ, rQi);
rQi += this._FBU.bytes - 1;
}
} else if (this._FBU.subencoding & 0x01) { // Raw } else if (this._FBU.subencoding & 0x01) { // Raw
this._display.blitImage(x, y, w, h, rQ, rQi); this._display.blitImage(x, y, w, h, rQ, rQi);
rQi += this._FBU.bytes - 1; rQi += this._FBU.bytes - 1;