Rev 205 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 205 | Rev 485 | ||
---|---|---|---|
Line 237... | Line 237... | ||
237 | mov esi,edi ; esi->FontName |
237 | mov esi,edi ; esi->FontName |
238 | mov [.dest],edi ; ptr to load font |
238 | mov [.dest],edi ; ptr to load font |
239 | if ~ BGI_LEVEL eq KERNEL |
239 | if ~ BGI_LEVEL eq KERNEL |
240 | mov eax, 70 |
240 | mov eax, 70 |
241 | mov ebx, .fontattr |
241 | mov ebx, .fontattr |
242 | int 0x40 |
242 | mcall |
243 | test eax, eax |
243 | test eax, eax |
244 | jnz .fail |
244 | jnz .fail |
245 | dps2 '1' |
245 | dps2 '1' |
246 | mov eax, [.fileattr+32] |
246 | mov eax, [.fileattr+32] |
247 | mov [.fsize], eax |
247 | mov [.fsize], eax |
248 | mov ebx,.fontinfo |
248 | mov ebx,.fontinfo |
249 | mov eax,70 |
249 | mov eax,70 |
250 | int 0x40 ; ebx - file size |
250 | mcall ; ebx - file size |
251 | else |
251 | else |
252 | push edi esi edx |
252 | push edi esi edx |
253 | mov eax,.font |
253 | mov eax,.font |
254 | xor ebx,ebx |
254 | xor ebx,ebx |
255 | mov esi,12 |
255 | mov esi,12 |
Line 452... | Line 452... | ||
452 | if BGI_WINDOW_CLIP eq 1 |
452 | if BGI_WINDOW_CLIP eq 1 |
453 | pusha |
453 | pusha |
454 | mov eax,9 |
454 | mov eax,9 |
455 | mov ebx,BGI_PRC_INFO |
455 | mov ebx,BGI_PRC_INFO |
456 | mov ecx,-1 |
456 | mov ecx,-1 |
457 | int 0x40 |
457 | mcall |
458 | popa |
458 | popa |
459 | end if |
459 | end if |
460 | end if |
460 | end if |
461 | mov [.y0],ax |
461 | mov [.y0],ax |
462 | shr eax,16 |
462 | shr eax,16 |
Line 585... | Line 585... | ||
585 | ; negate existing pixels colors, disregarding passed color |
585 | ; negate existing pixels colors, disregarding passed color |
586 | ; we do not want this |
586 | ; we do not want this |
587 | and edx, 0xFFFFFF |
587 | and edx, 0xFFFFFF |
588 | ; \end{diamond}[18.08.2006] |
588 | ; \end{diamond}[18.08.2006] |
589 | mov eax,38 |
589 | mov eax,38 |
590 | int 0x40 |
590 | mcall |
591 | test ebp,BGI_BOLD |
591 | test ebp,BGI_BOLD |
592 | jz .nobold |
592 | jz .nobold |
593 | test ebp,BGI_FREE |
593 | test ebp,BGI_FREE |
594 | jnz .free5 |
594 | jnz .free5 |
595 | .free5: |
595 | .free5: |
596 | add ebx,1 shl 16+1 |
596 | add ebx,1 shl 16+1 |
597 | int 0x40 |
597 | mcall |
598 | .nobold: |
598 | .nobold: |
599 | pop eax |
599 | pop eax |
600 | else |
600 | else |
601 | pusha |
601 | pusha |
602 | mov eax,dword[.x1] |
602 | mov eax,dword[.x1] |