Rev 2236 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2236 | Rev 3423 | ||
---|---|---|---|
Line 108... | Line 108... | ||
108 | mov eax,[stretch_img_width] |
108 | mov eax,[stretch_img_width] |
109 | shl eax,16 |
109 | shl eax,16 |
110 | add eax,[stretch_img_high] |
110 | add eax,[stretch_img_high] |
Line 111... | Line 111... | ||
111 | 111 | ||
112 | push dword eax ; eax - crop size |
112 | push dword eax ; eax - crop size |
113 | push dword 0 ; edi - background color |
113 | push dword [background_color] ; edi - background color |
114 | push dword 1 ; esi - filtering |
114 | push dword 1 ; esi - filtering |
115 | push dword 0 ; edx - scaling mode |
115 | push dword 0 ; edx - scaling mode |
116 | push dword [stretch_start_coordinates] ; ecx - start_coordinates |
116 | push dword [stretch_start_coordinates] ; ecx - start_coordinates |
117 | push ebx ; ebx - new_size |
117 | push ebx ; ebx - new_size |
Line 175... | Line 175... | ||
175 | shl ebx,16 |
175 | shl ebx,16 |
176 | add ebx,[stretch_img_high] |
176 | add ebx,[stretch_img_high] |
Line 177... | Line 177... | ||
177 | 177 | ||
178 | 178 | ||
179 | push dword 0 ; eax - crop size |
179 | push dword 0 ; eax - crop size |
180 | push dword 0 ; edi - background color |
180 | push dword [background_color] ; edi - background color |
181 | push dword 1 ; esi - filtering |
181 | push dword 1 ; esi - filtering |
182 | push dword 0 ; edx - scaling mode |
182 | push dword 0 ; edx - scaling mode |
183 | push dword [stretch_start_coordinates] ; ecx - start_coordinates |
183 | push dword [stretch_start_coordinates] ; ecx - start_coordinates |
Line 216... | Line 216... | ||
216 | 216 | ||
217 | ; fill of color |
217 | ; fill of color |
218 | sub ecx,44 |
218 | sub ecx,44 |
219 | mov edi,eax |
219 | mov edi,eax |
220 | add edi,44 |
220 | add edi,44 |
221 | mov eax,0xaaaaaa |
221 | mov eax,[background_color] ;0xaaaaaa |
222 | cld |
222 | cld |
223 | @@: |
223 | @@: |
224 | stosb |
224 | stosb |
225 | ror eax,8 |
225 | ror eax,8 |