1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-28 07:03:00 +08:00

Merge pull request #1285 from vanwinkeljan/fix_lv_draw_letter

Make sure that px_opa is initialized in lv_draw_letter
This commit is contained in:
Gabor Kiss-Vamosi 2019-11-26 09:38:29 +01:00 committed by GitHub
commit dbb3630306
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -333,7 +333,7 @@ void lv_draw_letter(const lv_point_t * pos_p, const lv_area_t * mask_p, const lv
map_p += bit_ofs >> 3;
uint8_t letter_px;
lv_opa_t px_opa;
lv_opa_t px_opa = 0;
uint16_t col_bit;
col_bit = bit_ofs & 0x7; /* "& 0x7" equals to "% 8" just faster */