fix(image): add data_size filed to all c-array images (#5608)
Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
This commit is contained in:
@@ -251,6 +251,7 @@ const lv_image_dsc_t img_clothes = {
|
||||
.header.h = 56,
|
||||
.header.cf = LV_COLOR_DEPTH == 16 ? LV_COLOR_FORMAT_RGB565A8 : LV_COLOR_FORMAT_ARGB8888,
|
||||
.data = img_clothes_map,
|
||||
.data_size = sizeof(img_clothes_map),
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -184,4 +184,5 @@ const lv_image_dsc_t img_demo_widgets_avatar = {
|
||||
.header.w = 160,
|
||||
.header.h = 154,
|
||||
.data = img_demo_widgets_avatar_map,
|
||||
.data_size = sizeof(img_demo_widgets_avatar_map),
|
||||
};
|
||||
|
||||
@@ -62,6 +62,7 @@ const lv_image_dsc_t img_lvgl_logo = {
|
||||
.header.h = 43,
|
||||
.header.cf = LV_COLOR_FORMAT_ARGB8888,
|
||||
.data = img_lvgl_logo_map,
|
||||
.data_size = sizeof(img_lvgl_logo_map),
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user