From e4289f6c4c42502e735295089a19c286b09e194b Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Sat, 14 May 2022 12:54:18 +0100 Subject: [PATCH] fxconv: remove alpha field of images --- fxconv/fxconv.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/fxconv/fxconv.py b/fxconv/fxconv.py index 423c042..46a2689 100644 --- a/fxconv/fxconv.py +++ b/fxconv/fxconv.py @@ -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: