(LzssStream): use FrameFill property.

This commit is contained in:
morkt 2017-03-24 22:46:16 +04:00
parent 5620f48ea9
commit 8947e19d00

View File

@ -79,6 +79,9 @@ namespace GameRes.Compression
private IEnumerator<int> Unpack () private IEnumerator<int> Unpack ()
{ {
byte[] frame = new byte[FrameSize]; byte[] frame = new byte[FrameSize];
if (FrameFill != 0)
for (int i = 0; i < frame.Length; ++i)
frame[i] = FrameFill;
int frame_pos = FrameInitPos; int frame_pos = FrameInitPos;
int frame_mask = FrameSize-1; int frame_mask = FrameSize-1;
for (;;) for (;;)