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

Fix #1570: uninitialized variable in lv_draw_img.c (#1574)

This commit is contained in:
nchurly 2020-06-13 12:28:47 -04:00 committed by GitHub
parent 1ca1934dbe
commit ccff331e3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -548,7 +548,9 @@ LV_ATTRIBUTE_FAST_MEM static void lv_draw_map(const lv_area_t * map_area, const
mask_buf[px_i] = 0xFF;
}
#if LV_COLOR_DEPTH == 8
#if LV_COLOR_DEPTH == 1
c.full = map_px[0];
#elif LV_COLOR_DEPTH == 8
c.full = map_px[0];
#elif LV_COLOR_DEPTH == 16
c.full = map_px[0] + (map_px[1] << 8);