From: Pierre Ossman Date: Sun, 7 Jun 2020 11:36:15 +0000 (+0200) Subject: Fix bad BasicCompression check in Tight decoder X-Git-Tag: v1.3.0~53^2~2 X-Git-Url: https://git.proxmox.com/?p=mirror_novnc.git;a=commitdiff_plain;h=34f52a8f41ec677463dc331ae31b89db32883817 Fix bad BasicCompression check in Tight decoder --- diff --git a/core/decoders/tight.js b/core/decoders/tight.js index b207419..81335ab 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 {