chore(decoder): remove not used color field (#4707)

Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
This commit is contained in:
Neo Xu
2023-10-26 21:36:59 +08:00
committed by GitHub
parent c535e3ff91
commit 8ee00aa4f1
2 changed files with 1 additions and 4 deletions
+1 -1
View File
@@ -110,6 +110,7 @@ lv_result_t lv_image_decoder_get_info(const void * src, lv_image_header_t * head
lv_result_t lv_image_decoder_open(lv_image_decoder_dsc_t * dsc, const void * src, lv_color_t color, int32_t frame_id)
{
LV_UNUSED(color);
lv_memzero(dsc, sizeof(lv_image_decoder_dsc_t));
if(src == NULL) return LV_RESULT_INVALID;
@@ -119,7 +120,6 @@ lv_result_t lv_image_decoder_open(lv_image_decoder_dsc_t * dsc, const void * src
if(img_dsc->data == NULL) return LV_RESULT_INVALID;
}
dsc->color = color;
dsc->src_type = src_type;
dsc->frame_id = frame_id;
-3
View File
@@ -106,9 +106,6 @@ typedef struct _lv_image_decoder_dsc_t {
/**The image source. A file path like "S:my_img.png" or pointer to an `lv_image_dsc_t` variable*/
const void * src;
/**Color to draw the image. Used when the image has alpha channel only*/
lv_color_t color;
/**Frame of the image, using with animated images*/
int32_t frame_id;