mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-11-24 17:59:38 +03:00
47b7315fd5
git-svn-id: svn://kolibrios.org@5264 a494cfbc-eb01-0410-851d-a64ba20cac60
34 lines
655 B
PHP
34 lines
655 B
PHP
;---------------------------------------------------------------------
|
|
draw_font:
|
|
pusha
|
|
xor ebp,ebp
|
|
mov esi,edx
|
|
mov edx,ebx
|
|
cld
|
|
;--------------------------------------
|
|
@@:
|
|
lodsb
|
|
test al,al
|
|
jz .exit
|
|
|
|
movzx ebx,al
|
|
imul ebx, FONT_SIZE_X * FONT_SIZE_Y /8
|
|
mov eax,[font_icons]
|
|
add ebx,[eax+28]
|
|
add ebx,eax
|
|
mov ecx,FONT_SIZE_X shl 16 + FONT_SIZE_Y
|
|
mov edi,[eax+20] ; palette
|
|
add edi,eax
|
|
|
|
push esi
|
|
mov esi,1
|
|
mcall 65
|
|
pop esi
|
|
|
|
add edx,FONT_REAL_SIZE_X shl 16 ; font size x
|
|
jmp @b
|
|
;--------------------------------------
|
|
.exit:
|
|
popa
|
|
ret
|
|
;--------------------------------------------------------------------- |