diff --git a/kernel/trunk/kernel.asm b/kernel/trunk/kernel.asm index 4d01f33a74..ee36364cb9 100644 --- a/kernel/trunk/kernel.asm +++ b/kernel/trunk/kernel.asm @@ -4110,6 +4110,14 @@ align 4 jmp sys_putimage_bpp ;-------------------------------------- align 4 +@@: + cmp esi, 9 + jnz @f + mov ebp, putimage_get9bpp + mov esi, putimage_init9bpp + jmp sys_putimage_bpp +;-------------------------------------- +align 4 @@: cmp esi, 15 jnz @f @@ -4171,6 +4179,7 @@ align 4 putimage_init24bpp: lea eax, [eax*3] putimage_init8bpp: +putimage_init9bpp: ret ;----------------------------------------------------------------------------- align 16 @@ -4191,6 +4200,14 @@ putimage_get8bpp: inc esi ret 4 ;----------------------------------------------------------------------------- +align 16 +putimage_get9bpp: + lodsb + mov ah, al + shl eax, 8 + mov al, ah + ret 4 +;----------------------------------------------------------------------------- align 4 putimage_init1bpp: add eax, ecx