Rev 7105 | Rev 8449 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 7105 | Rev 8394 | ||
---|---|---|---|
Line 171... | Line 171... | ||
171 | 171 | ||
172 | proc img._.convert.bpp8g_to_bpp1 _src, _dst |
172 | proc img._.convert.bpp8g_to_bpp1 _src, _dst |
173 | mov eax, [_dst] |
173 | mov eax, [_dst] |
174 | mov eax, [eax + Image.Palette] |
174 | mov eax, [eax + Image.Palette] |
175 | mov dword[eax], 0x00000000 |
175 | mov dword[eax], 0x00000000 |
176 | mov dword[eax + 4], 0x00ffffff |
176 | mov dword[eax + 4], 0xffffffff |
177 | mov edx, [ebx + Image.Height] |
177 | mov edx, [ebx + Image.Height] |
178 | .bpp8g_to_bpp1.line: |
178 | .bpp8g_to_bpp1.line: |
179 | mov ax, 0x0800 |
179 | mov ax, 0x0800 |
180 | mov ecx, [ebx + Image.Width] |
180 | mov ecx, [ebx + Image.Width] |
Line 259... | Line 259... | ||
259 | imul ecx, [ebx + Image.Height] |
259 | imul ecx, [ebx + Image.Height] |
260 | @@: |
260 | @@: |
261 | lodsw |
261 | lodsw |
262 | ror eax, 16 |
262 | ror eax, 16 |
263 | lodsb |
263 | lodsb |
- | 264 | mov ah, 0xff ; opaque |
|
264 | rol eax, 16 |
265 | rol eax, 16 |
265 | stosd |
266 | stosd |
266 | dec ecx |
267 | dec ecx |
267 | jnz @b |
268 | jnz @b |
268 | ret |
269 | ret |
Line 582... | Line 583... | ||
582 | 583 | ||
583 | proc img._.convert.bpp8a_to_bpp1 _src, _dst |
584 | proc img._.convert.bpp8a_to_bpp1 _src, _dst |
584 | mov eax, [_dst] |
585 | mov eax, [_dst] |
585 | mov eax, [eax + Image.Palette] |
586 | mov eax, [eax + Image.Palette] |
586 | mov dword[eax], 0x00000000 |
587 | mov dword[eax], 0x00000000 |
587 | mov dword[eax + 4], 0x00ffffff |
588 | mov dword[eax + 4], 0xffffffff |
588 | mov edx, [ebx + Image.Height] |
589 | mov edx, [ebx + Image.Height] |
589 | .bpp8a_to_bpp1.line: |
590 | .bpp8a_to_bpp1.line: |
590 | mov ax, 0x0800 |
591 | mov ax, 0x0800 |
591 | mov ecx, [ebx + Image.Width] |
592 | mov ecx, [ebx + Image.Width] |