]> git.proxmox.com Git - mirror_novnc.git/blobdiff - core/decoders/tight.js
Remove unused inflate argument
[mirror_novnc.git] / core / decoders / tight.js
index b1ee91acc1eff6fce616f9d96e1248f41a2cc611..5a0a315f82e0a39e707f96330b8f92227ed0d285 100644 (file)
@@ -92,7 +92,7 @@ export default class TightDecoder {
             return false;
         }
 
-        display.imageRect(x, y, "image/jpeg", data);
+        display.imageRect(x, y, width, height, "image/jpeg", data);
 
         return true;
     }
@@ -160,7 +160,7 @@ export default class TightDecoder {
                 return false;
             }
 
-            data = this._zlibs[streamId].inflate(data, true, uncompressedSize);
+            data = this._zlibs[streamId].inflate(data, uncompressedSize);
             if (data.length != uncompressedSize) {
                 throw new Error("Incomplete zlib block");
             }
@@ -208,7 +208,7 @@ export default class TightDecoder {
                 return false;
             }
 
-            data = this._zlibs[streamId].inflate(data, true, uncompressedSize);
+            data = this._zlibs[streamId].inflate(data, uncompressedSize);
             if (data.length != uncompressedSize) {
                 throw new Error("Incomplete zlib block");
             }