|
|
|
@ -174,7 +174,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);
|
|
|
|
@ -219,7 +221,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
|
|
|
|
|