Subversion Repositories Kolibri OS

Rev

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

Rev 6888 Rev 6891
Line 1840... Line 1840...
1840
 
1840
 
Line 1841... Line 1841...
1841
	test eax,eax
1841
	test eax,eax
1842
	jz .end0 ;if (..!=0)
1842
	jz .end0 ;if (..!=0)
1843
		mov edi,eax
1843
		mov edi,eax
-
 
1844
		or dword[eax+png_struct.transformations],PNG_BGR ;transformation rgb for KoliriOS
1844
		stdcall png_create_info_struct, edi
1845
		stdcall png_create_info_struct, edi
1845
		;eax = info_ptr
1846
		;eax = info_ptr
Line 1846... Line 1847...
1846
 
1847
 
1847
		test eax,eax
1848
		test eax,eax
Line 2751... Line 2752...
2751
	; Otherwise this is the case where the input is in a format currently
2752
	; Otherwise this is the case where the input is in a format currently
2752
	; supported by the rest of the libpng write code; call it directly.
2753
	; supported by the rest of the libpng write code; call it directly.
Line 2753... Line 2754...
2753
 
2754
 
2754
	.end9: ;else
2755
	.end9: ;else
2755
if 1 ;;; IDAT compress all
2756
if 1 ;;; IDAT compress all (only 24 bit)
2756
		mov ecx,[edx+png_image_write_control.row_bytes]
2757
		mov ecx,[edx+png_image_write_control.row_bytes]
2757
		inc ecx
2758
		inc ecx
2758
		imul ecx,[ebx+png_image.height]
2759
		imul ecx,[ebx+png_image.height]
2759
		cmp ecx,1
2760
		cmp ecx,1