Subversion Repositories Kolibri OS

Rev

Rev 6779 | Rev 6797 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6779 Rev 6780
Line 2944... Line 2944...
2944
		cmp eax,Z_STREAM_ERROR
2944
		cmp eax,Z_STREAM_ERROR
2945
		je .end1
2945
		je .end1
2946
 
2946
 
Line 2947... Line 2947...
2947
		add ecx,16*1024
2947
		add ecx,16*1024
2948
		sub cx,[edi+png_struct.zstream.avail_out]
2948
		movzx eax,word[edi+png_struct.zstream.avail_out]
-
 
2949
		sub ecx,eax
2949
		cmp word[edi+png_struct.zstream.avail_out],0
2950
		cmp word[edi+png_struct.zstream.avail_out],0
2950
	je .cycle4 ;while (strm.avail_out == 0)
2951
	je .cycle4 ;while (strm.avail_out == 0)
2951
if 0
2952
if 0
2952
	mov word[edi+png_struct.zstream.avail_out],16*1024
2953
	mov word[edi+png_struct.zstream.avail_out],16*1024
2953
	stdcall [deflate], esi, Z_FINISH
2954
	stdcall [deflate], esi, Z_FINISH
Line 2965... Line 2966...
2965
		stdcall png_image_size, edi
2966
		stdcall png_image_size, edi
2966
		stdcall optimize_cmf, [m1], eax
2967
		stdcall optimize_cmf, [m1], eax
2967
	@@:
2968
	@@:
2968
end if
2969
end if
2969
 
2970
	stdcall png_write_complete_chunk, edi, png_IDAT, [m1], ecx
2970
	stdcall png_write_complete_chunk, edi, png_IDAT, [m1], ecx
-
 
2971
	or dword[edi+png_struct.mode],PNG_HAVE_IDAT
2971
	or dword[edi+png_struct.mode],PNG_HAVE_IDAT
2972
 
2972
 
Line 2973... Line 2973...
2973
	jmp @f
2973
	jmp @f
2974
	.end1:
2974
	.end1: