libimg: small fix in 8bpp -> 24bpp translation
git-svn-id: svn://kolibrios.org@1152 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -225,6 +225,8 @@ align 16
|
|||||||
push ebx
|
push ebx
|
||||||
mov ebx, [esi + Image.Palette]
|
mov ebx, [esi + Image.Palette]
|
||||||
mov esi, [esi + Image.Data]
|
mov esi, [esi + Image.Data]
|
||||||
|
sub ecx, 1
|
||||||
|
jz .bpp8.last
|
||||||
@@:
|
@@:
|
||||||
movzx eax, byte [esi]
|
movzx eax, byte [esi]
|
||||||
add esi, 1
|
add esi, 1
|
||||||
@@ -233,6 +235,12 @@ align 16
|
|||||||
add edi, 3
|
add edi, 3
|
||||||
sub ecx, 1
|
sub ecx, 1
|
||||||
jnz @b
|
jnz @b
|
||||||
|
.bpp8.last:
|
||||||
|
movzx eax, byte [esi]
|
||||||
|
mov eax, [ebx + eax*4]
|
||||||
|
mov [edi], ax
|
||||||
|
shr eax, 16
|
||||||
|
mov [edi+2], al
|
||||||
pop ebx
|
pop ebx
|
||||||
ret
|
ret
|
||||||
|
|
||||||
@@ -1709,7 +1717,7 @@ align 4
|
|||||||
|
|
||||||
export \
|
export \
|
||||||
lib_init , 'lib_init' , \
|
lib_init , 'lib_init' , \
|
||||||
0x00050005 , 'version' , \
|
0x00050006 , 'version' , \
|
||||||
img.is_img , 'img_is_img' , \
|
img.is_img , 'img_is_img' , \
|
||||||
img.info , 'img_info' , \
|
img.info , 'img_info' , \
|
||||||
img.from_file , 'img_from_file' , \
|
img.from_file , 'img_from_file' , \
|
||||||
|
Reference in New Issue
Block a user