Fixed issue causing backgrounds to appear with random colors.
This commit is contained in:
parent
ec31f82eda
commit
5bc5f4b2d1
|
|
@ -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) {
|
||||
if ((this._FBU.subencoding === 0) && (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;
|
||||
}
|
||||
} else if (this._FBU.subencoding & 0x01) { // Raw
|
||||
this._display.blitImage(x, y, w, h, rQ, rQi);
|
||||
rQi += this._FBU.bytes - 1;
|
||||
|
|
|
|||
Loading…
Reference in New Issue