/programs/develop/libraries/libs-dev/libimg/pnm/pgm.asm |
---|
1,17 → 1,10 |
.pgm: |
stdcall img.create, [width], [height], Image.bpp8 |
stdcall img.create, [width], [height], Image.bpp8g |
test eax, eax |
jz .quit |
mov [retvalue], eax |
mov ebx, eax |
mov edi, [ebx+Image.Palette] |
mov eax, 0xff000000 |
@@: |
stosd |
add eax, 0x00010101 |
jnc @b |
mov edi, [ebx+Image.Data] |
mov ecx, [ebx+Image.Width] |
imul ecx, [ebx+Image.Height] |
/programs/develop/libraries/libs-dev/libimg/pnm/pnm.asm |
---|
204,7 → 204,7 |
mov eax, [ebx + Image.Type] |
cmp eax, Image.bpp1 |
je .pbm |
cmp eax, Image.bpp8 |
cmp eax, Image.bpp8g |
je .pgm |
cmp eax, Image.bpp24 |
je .ppm |