2941,7 → 2941,7 |
.cycle4: |
mov dword[edi+png_struct.zstream.avail_out],16*1024 |
|
stdcall [deflate], esi, Z_NO_FLUSH |
stdcall [deflate], esi, Z_FINISH ;Z_NO_FLUSH |
cmp eax,Z_STREAM_ERROR |
je .end1 |
|
2949,6 → 2949,7 |
sub ecx,[edi+png_struct.zstream.avail_out] |
cmp dword[edi+png_struct.zstream.avail_out],0 |
je .cycle4 ;while (strm.avail_out == 0) |
if 0 |
mov dword[edi+png_struct.zstream.avail_out],16*1024 |
stdcall [deflate], esi, Z_FINISH |
add ecx,16*1024 |
2955,7 → 2956,7 |
sub ecx,[edi+png_struct.zstream.avail_out] |
cmp eax,Z_STREAM_ERROR |
je .end1 |
|
end if |
stdcall [deflateEnd], esi |
|
if PNG_WRITE_OPTIMIZE_CMF_SUPPORTED eq 1 |