Fix bad BasicCompression check in Tight decoder

This commit is contained in:
Pierre Ossman 2020-06-07 13:36:15 +02:00
parent 18a68dfac1
commit 34f52a8f41
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ export default class TightDecoder {
} else if (this._ctl === 0x0A) {
ret = this._pngRect(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 {