mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-14 06:42:58 +08:00
lv_draw_line: Fixed a warning by wrapping unused antialiasing variables in LV_ANTIALIAS
This commit is contained in:
parent
9c708d6f4d
commit
e49de22941
@ -236,7 +236,9 @@ static void line_draw_skew(line_draw_t * main_line, bool dir_ori, const lv_area_
|
||||
lv_opa_t opa = opa_scale == LV_OPA_COVER
|
||||
? style->line.opa
|
||||
: (uint16_t)((uint16_t)style->line.opa * opa_scale) >> 8;
|
||||
#if LV_ANTIALIAS
|
||||
bool aa = lv_disp_get_antialiasing(lv_refr_get_disp_refreshing());
|
||||
#endif
|
||||
lv_point_t vect_main, vect_norm;
|
||||
vect_main.x = main_line->p2.x - main_line->p1.x;
|
||||
vect_main.y = main_line->p2.y - main_line->p1.y;
|
||||
|
Loading…
x
Reference in New Issue
Block a user