fxconv: remove alpha field of images

This commit is contained in:
Lephenixnoir 2022-05-14 12:54:18 +01:00
parent b29c494715
commit e4289f6c4c
No known key found for this signature in database
GPG key ID: 1BBA026E13FC0495

View file

@ -582,12 +582,11 @@ def convert_image_cg(input, params):
o = ObjectData()
o += u8(format.id)
o += u8(3) # DATA_RO, PALETTE_RO
o += u16(format.alpha if format.alpha is not None else 0xffff)
o += u16(color_count)
o += u16(img.width)
o += u16(img.height)
o += u32(stride)
o += ref(data, padding=4)
o += u32(color_count)
if palette is None:
o += u32(0)
else: