forked from KolibriOS/kolibrios
fix calculation 'adler32',
other small fixes git-svn-id: svn://kolibrios.org@6873 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -149,9 +149,6 @@ f_zbz db ' ZB_line_z',0
|
||||
f_zb db ' ZB_line',0
|
||||
f_find_l db 'find_list',0
|
||||
f_alloc_l db 'alloc_list',0
|
||||
f_is_l db 'glIsList',0
|
||||
f_gen_l db 'glGenLists',0
|
||||
f_end_l db 'glEndList',0
|
||||
f_fill_tr db 'ZB_fillTriangle...',0
|
||||
f_fill_tr_nl db ' lines',0
|
||||
f_fill_tr_nll db ' len',0
|
||||
|
||||
@@ -2941,7 +2941,7 @@ align 4
|
||||
.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,13 +2949,14 @@ align 4
|
||||
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
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user