Subversion Repositories Kolibri OS

Rev

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

Rev 6210 Rev 6211
Line 93... Line 93...
93
proc buf_create_f_img, buf_struc:dword, rgb_data:dword
93
proc buf_create_f_img, buf_struc:dword, rgb_data:dword
94
	pushad
94
	pushad
95
	mov edi,dword[buf_struc]
95
	mov edi,dword[buf_struc]
96
	mov ecx,buf2d_w
96
	mov ecx,buf2d_w
97
	cmp ecx,1
97
	cmp ecx,1
98
	jl .end_create
98
	jl .error
99
	mov ebx,buf2d_h
99
	mov ebx,buf2d_h
100
	cmp ebx,1
100
	cmp ebx,1
101
	jl .end_create
101
	jl .error
102
	imul ecx,ebx
102
	imul ecx,ebx
103
	cmp buf2d_bits,24
103
	cmp buf2d_bits,24
104
	jne @f
104
	jne @f
105
		lea ecx,[ecx+ecx*2] ; 24 bit = 3
105
		lea ecx,[ecx+ecx*2] ; 24 bit = 3
106
	@@:
106
	@@:
Line 113... Line 113...
113
 
113
 
114
	cmp buf2d_bits,24
114
	cmp buf2d_bits,24
115
	jne @f
115
	jne @f
116
		cld
116
		cld
-
 
117
		mov esi,[rgb_data]
-
 
118
		or esi,esi
117
		mov esi,[rgb_data]
119
		jz @f
118
		mov edi,eax ;eax=buf2d_data
120
		mov edi,eax ;eax=buf2d_data
119
		rep movsb ;ª®¯¨à㥬 ¡¨âë ¨§®¡à ¦¥­¨ï ¢ ¡ãä¥à
121
		rep movsb ;ª®¯¨à㥬 ¡¨âë ¨§®¡à ¦¥­¨ï ¢ ¡ãä¥à
120
		jmp .end_create
122
		jmp .end_create
121
	@@:
123
	@@: