summaryrefslogtreecommitdiff
path: root/core/decoders/tight.js
diff options
context:
space:
mode:
Diffstat (limited to 'core/decoders/tight.js')
-rw-r--r--core/decoders/tight.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/core/decoders/tight.js b/core/decoders/tight.js
index c226b33..b207419 100644
--- a/core/decoders/tight.js
+++ b/core/decoders/tight.js
@@ -160,7 +160,9 @@ export default class TightDecoder {
return false;
}
- data = this._zlibs[streamId].inflate(data, uncompressedSize);
+ this._zlibs[streamId].setInput(data);
+ data = this._zlibs[streamId].inflate(uncompressedSize);
+ this._zlibs[streamId].setInput(null);
}
display.blitRgbImage(x, y, width, height, data, 0, false);
@@ -205,7 +207,9 @@ export default class TightDecoder {
return false;
}
- data = this._zlibs[streamId].inflate(data, uncompressedSize);
+ this._zlibs[streamId].setInput(data);
+ data = this._zlibs[streamId].inflate(uncompressedSize);
+ this._zlibs[streamId].setInput(null);
}
// Convert indexed (palette based) image data to RGB