From f9b554503e572e57236f422c942d5e154a5a426a Mon Sep 17 00:00:00 2001 From: _VIFEXTech <1290176185@qq.com> Date: Wed, 30 Mar 2022 19:18:28 +0800 Subject: [PATCH] fix(png): use LV_IMG_CF_TRUE_COLOR_ALPHA instead of LV_IMG_CF_RAW_ALPHA (#3212) Co-authored-by: pengyiqiang --- src/extra/libs/png/lv_png.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/extra/libs/png/lv_png.c b/src/extra/libs/png/lv_png.c index 6534bcb5a..7431e9a85 100644 --- a/src/extra/libs/png/lv_png.c +++ b/src/extra/libs/png/lv_png.c @@ -91,7 +91,7 @@ static lv_res_t decoder_info(struct _lv_img_decoder_t * decoder, const void * sr /*Save the data in the header*/ header->always_zero = 0; - header->cf = LV_IMG_CF_RAW_ALPHA; + header->cf = LV_IMG_CF_TRUE_COLOR_ALPHA; /*The width and height are stored in Big endian format so convert them to little endian*/ header->w = (lv_coord_t)((size[0] & 0xff000000) >> 24) + ((size[0] & 0x00ff0000) >> 8); header->h = (lv_coord_t)((size[1] & 0xff000000) >> 24) + ((size[1] & 0x00ff0000) >> 8);