From 34f52a8f41ec677463dc331ae31b89db32883817 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Sun, 7 Jun 2020 13:36:15 +0200 Subject: [PATCH] Fix bad BasicCompression check in Tight decoder --- core/decoders/tight.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/decoders/tight.js b/core/decoders/tight.js index b207419e..81335ab6 100644 --- a/core/decoders/tight.js +++ b/core/decoders/tight.js @@ -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 {