Make sure that px_opa is initialized in lv_draw_letter
Make sure that the variable px_opa in lv_draw_letter is initialized, else a compile time warring will occur . Signed-off-by: Jan Van Winkel <jan.van_winkel@dxplore.eu>
This commit is contained in:
@@ -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;
|
map_p += bit_ofs >> 3;
|
||||||
|
|
||||||
uint8_t letter_px;
|
uint8_t letter_px;
|
||||||
lv_opa_t px_opa;
|
lv_opa_t px_opa = 0;
|
||||||
uint16_t col_bit;
|
uint16_t col_bit;
|
||||||
col_bit = bit_ofs & 0x7; /* "& 0x7" equals to "% 8" just faster */
|
col_bit = bit_ofs & 0x7; /* "& 0x7" equals to "% 8" just faster */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user