forked from KolibriOS/kolibrios
kernel, f65: native grayscale images support
git-svn-id: svn://kolibrios.org@2727 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
5b05341aae
commit
22e876669a
@ -4110,6 +4110,14 @@ align 4
|
|||||||
jmp sys_putimage_bpp
|
jmp sys_putimage_bpp
|
||||||
;--------------------------------------
|
;--------------------------------------
|
||||||
align 4
|
align 4
|
||||||
|
@@:
|
||||||
|
cmp esi, 9
|
||||||
|
jnz @f
|
||||||
|
mov ebp, putimage_get9bpp
|
||||||
|
mov esi, putimage_init9bpp
|
||||||
|
jmp sys_putimage_bpp
|
||||||
|
;--------------------------------------
|
||||||
|
align 4
|
||||||
@@:
|
@@:
|
||||||
cmp esi, 15
|
cmp esi, 15
|
||||||
jnz @f
|
jnz @f
|
||||||
@ -4171,6 +4179,7 @@ align 4
|
|||||||
putimage_init24bpp:
|
putimage_init24bpp:
|
||||||
lea eax, [eax*3]
|
lea eax, [eax*3]
|
||||||
putimage_init8bpp:
|
putimage_init8bpp:
|
||||||
|
putimage_init9bpp:
|
||||||
ret
|
ret
|
||||||
;-----------------------------------------------------------------------------
|
;-----------------------------------------------------------------------------
|
||||||
align 16
|
align 16
|
||||||
@ -4191,6 +4200,14 @@ putimage_get8bpp:
|
|||||||
inc esi
|
inc esi
|
||||||
ret 4
|
ret 4
|
||||||
;-----------------------------------------------------------------------------
|
;-----------------------------------------------------------------------------
|
||||||
|
align 16
|
||||||
|
putimage_get9bpp:
|
||||||
|
lodsb
|
||||||
|
mov ah, al
|
||||||
|
shl eax, 8
|
||||||
|
mov al, ah
|
||||||
|
ret 4
|
||||||
|
;-----------------------------------------------------------------------------
|
||||||
align 4
|
align 4
|
||||||
putimage_init1bpp:
|
putimage_init1bpp:
|
||||||
add eax, ecx
|
add eax, ecx
|
||||||
|
Loading…
Reference in New Issue
Block a user