Fix bad BasicCompression check in Tight decoder

This commit is contained in:
Pierre Ossman 2020-06-07 13:36:15 +02:00 committed by Lauri Kasanen
parent 55178c76b8
commit c7a7ce70be

View File

@ -59,7 +59,7 @@ export default class TightDecoder {
} else if (this._ctl === 0x0B) {
ret = this._webpRect(x, y, width, height,
sock, display, depth);
} else if ((this._ctl & 0x80) == 0) {
} else if ((this._ctl & 0x08) == 0) {
ret = this._basicRect(this._ctl, x, y, width, height,
sock, display, depth);
} else {