1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

fix(vg_lite): remove 'always_zero' fix build break (#5071)

```
lvgl/src/draw/vg_lite/lv_draw_vg_lite_layer.c: In function ‘lv_draw_vg_lite_layer’:
lvgl/src/draw/vg_lite/lv_draw_vg_lite_layer.c:56:19: error: ‘lv_image_header_t’ {aka ‘struct <anonymous>’} has no member named ‘always_zero’
   56 |     img_dsc.header.always_zero = 0;
      |                   ^
```

Signed-off-by: pengyiqiang <pengyiqiang@xiaomi.com>
Co-authored-by: pengyiqiang <pengyiqiang@xiaomi.com>
This commit is contained in:
_VIFEXTech 2023-12-21 12:23:40 +08:00 committed by GitHub
parent 8e055dee81
commit 1d0dd9b28b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,9 +53,11 @@ void lv_draw_vg_lite_layer(lv_draw_unit_t * draw_unit, const lv_draw_image_dsc_t
img_dsc.header.w = lv_area_get_width(&layer->buf_area);
img_dsc.header.h = lv_area_get_height(&layer->buf_area);
img_dsc.header.cf = layer->color_format;
img_dsc.header.always_zero = 0;
img_dsc.data = layer->buf;
/* The GPU output is premultiplied RGB */
img_dsc.header.flags = LV_IMAGE_FLAGS_PREMULTIPLIED;
lv_draw_image_dsc_t new_draw_dsc = *draw_dsc;
new_draw_dsc.src = &img_dsc;