Searched refs:xdiff (Results 1 – 1 of 1) sorted by relevance
/lvgl-3.4.0/src/draw/sw/ |
D | lv_draw_sw_line.c | 298 int32_t xdiff = p2.x - p1.x; in draw_line_skew() local 300 bool flat = LV_ABS(xdiff) > LV_ABS(ydiff) ? true : false; in draw_line_skew() 312 if(flat) wcorr_i = (LV_ABS(ydiff) << 5) / LV_ABS(xdiff); in draw_line_skew() 313 else wcorr_i = (LV_ABS(xdiff) << 5) / LV_ABS(ydiff); in draw_line_skew() 337 if(xdiff > 0) { in draw_line_skew() 365 …lv_draw_mask_line_points_init(&mask_top_param, p1.x, p1.y, p1.x - ydiff, p1.y + xdiff, LV_DRAW_MAS… in draw_line_skew() 366 …lv_draw_mask_line_points_init(&mask_bottom_param, p2.x, p2.y, p2.x - ydiff, p2.y + xdiff, LV_DRAW… in draw_line_skew()
|