mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-22 14:52:39 +03:00
065b8d32b2
git-svn-id: svn://kolibrios.org@31 a494cfbc-eb01-0410-851d-a64ba20cac60
17 lines
353 B
PHP
17 lines
353 B
PHP
blit_8_to_32:
|
|
mov esi,virtual_screen_8 ; ESI=src
|
|
mov edi,virtual_screen_32 ; EDI=dst
|
|
mov ecx,WND_SIZE_X*WND_SIZE_Y ; ECX=size
|
|
.blit_next:
|
|
xor eax,eax ; EAX=byte to blit
|
|
mov al,[esi]
|
|
shl eax,2
|
|
mov eax,[_palette+eax]
|
|
mov [edi],ax
|
|
shr eax,16
|
|
mov [edi+2],al
|
|
inc esi
|
|
add edi,3
|
|
loop .blit_next
|
|
ret
|