Lines Matching +full:- +full:y
60 for(i = 0; i < point_cnt - 1; i++) { in lv_draw_sw_polygon()
61 if(points[i].x != points[i + 1].x || points[i].y != points[i + 1].y) { in lv_draw_sw_polygon()
67 if(points[0].x != points[point_cnt - 1].x || points[0].y != points[point_cnt - 1].y) { in lv_draw_sw_polygon()
68 p[pcnt] = points[point_cnt - 1]; in lv_draw_sw_polygon()
82 poly_coords.y1 = LV_MIN(poly_coords.y1, p[i].y); in lv_draw_sw_polygon()
84 poly_coords.y2 = LV_MAX(poly_coords.y2, p[i].y); in lv_draw_sw_polygon()
89 is_common = _lv_area_intersect(&clip_area, &poly_coords, draw_ctx->clip_area); in lv_draw_sw_polygon()
95 const lv_area_t * clip_area_ori = draw_ctx->clip_area; in lv_draw_sw_polygon()
96 draw_ctx->clip_area = &clip_area; in lv_draw_sw_polygon()
99 lv_coord_t y_min = p[0].y; in lv_draw_sw_polygon()
103 if(p[i].y < y_min) { in lv_draw_sw_polygon()
104 y_min = p[i].y; in lv_draw_sw_polygon()
119 i_next_left = y_min_i - 1; in lv_draw_sw_polygon()
123 if(i_next_right > point_cnt - 1) i_next_right = 0; in lv_draw_sw_polygon()
127 * The normal case is when the left point is on `y_min_i - 1` in lv_draw_sw_polygon()
129 * if angle(p_left) < angle(p_right) -> inverted in lv_draw_sw_polygon()
133 lv_coord_t dxl = p[i_next_left].x - p[y_min_i].x; in lv_draw_sw_polygon()
134 lv_coord_t dxr = p[i_next_right].x - p[y_min_i].x; in lv_draw_sw_polygon()
135 lv_coord_t dyl = p[i_next_left].y - p[y_min_i].y; in lv_draw_sw_polygon()
136 lv_coord_t dyr = p[i_next_right].y - p[y_min_i].y; in lv_draw_sw_polygon()
143 i_next_left = i_prev_left - 1; in lv_draw_sw_polygon()
147 if(i_next_right > point_cnt - 1) i_next_right = 0; in lv_draw_sw_polygon()
151 if(i_next_left > point_cnt - 1) i_next_left = 0; in lv_draw_sw_polygon()
153 i_next_right = i_prev_right - 1; in lv_draw_sw_polygon()
157 if(p[i_next_left].y >= p[i_prev_left].y) { in lv_draw_sw_polygon()
158 if(p[i_next_left].y != p[i_prev_left].y && in lv_draw_sw_polygon()
160 lv_draw_mask_line_points_init(mp_next, p[i_prev_left].x, p[i_prev_left].y, in lv_draw_sw_polygon()
161 p[i_next_left].x, p[i_next_left].y, in lv_draw_sw_polygon()
172 if(p[i_next_right].y >= p[i_prev_right].y) { in lv_draw_sw_polygon()
173 if(p[i_next_right].y != p[i_prev_right].y && in lv_draw_sw_polygon()
176 lv_draw_mask_line_points_init(mp_next, p[i_prev_right].x, p[i_prev_right].y, in lv_draw_sw_polygon()
177 p[i_next_right].x, p[i_next_right].y, in lv_draw_sw_polygon()
195 draw_ctx->clip_area = clip_area_ori; in lv_draw_sw_polygon()