]> git.proxmox.com Git - mirror_novnc.git/commitdiff
Fix bad BasicCompression check in Tight decoder
authorPierre Ossman <ossman@cendio.se>
Sun, 7 Jun 2020 11:36:15 +0000 (13:36 +0200)
committerPierre Ossman <ossman@cendio.se>
Mon, 8 Jun 2020 05:53:41 +0000 (07:53 +0200)
core/decoders/tight.js

index b207419e193d7ea3da88e890fa95fe2460909d27..81335ab6e4e5949e0a0901f2efbaafc8587fecdb 100644 (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 {