Lines Matching refs:blend_area

118     lv_area_t blend_area;  in draw_line_hor()  local
119 blend_area.x1 = LV_MIN(point1->x, point2->x); in draw_line_hor()
120 blend_area.x2 = LV_MAX(point1->x, point2->x) - 1; in draw_line_hor()
121 blend_area.y1 = point1->y - w_half1; in draw_line_hor()
122 blend_area.y2 = point1->y + w_half0; in draw_line_hor()
125 is_common = _lv_area_intersect(&blend_area, &blend_area, draw_ctx->clip_area); in draw_line_hor()
130 if(lv_draw_mask_is_any(&blend_area)) simple_mode = false; in draw_line_hor()
135 blend_dsc.blend_area = &blend_area; in draw_line_hor()
147 int32_t blend_area_w = lv_area_get_width(&blend_area); in draw_line_hor()
149 lv_coord_t y2 = blend_area.y2; in draw_line_hor()
150 blend_area.y2 = blend_area.y1; in draw_line_hor()
154 dash_start = (blend_area.x1) % (dsc->dash_gap + dsc->dash_width); in draw_line_hor()
159 blend_dsc.mask_area = &blend_area; in draw_line_hor()
161 for(h = blend_area.y1; h <= y2; h++) { in draw_line_hor()
163 blend_dsc.mask_res = lv_draw_mask_apply(mask_buf, blend_area.x1, h, blend_area_w); in draw_line_hor()
189 blend_area.y1++; in draw_line_hor()
190 blend_area.y2++; in draw_line_hor()
204 lv_area_t blend_area; in draw_line_ver() local
205 blend_area.x1 = point1->x - w_half1; in draw_line_ver()
206 blend_area.x2 = point1->x + w_half0; in draw_line_ver()
207 blend_area.y1 = LV_MIN(point1->y, point2->y); in draw_line_ver()
208 blend_area.y2 = LV_MAX(point1->y, point2->y) - 1; in draw_line_ver()
211 is_common = _lv_area_intersect(&blend_area, &blend_area, draw_ctx->clip_area); in draw_line_ver()
216 if(lv_draw_mask_is_any(&blend_area)) simple_mode = false; in draw_line_ver()
221 blend_dsc.blend_area = &blend_area; in draw_line_ver()
233 int32_t draw_area_w = lv_area_get_width(&blend_area); in draw_line_ver()
235 lv_coord_t y2 = blend_area.y2; in draw_line_ver()
236 blend_area.y2 = blend_area.y1; in draw_line_ver()
240 blend_dsc.mask_area = &blend_area; in draw_line_ver()
244 dash_start = (blend_area.y1) % (dsc->dash_gap + dsc->dash_width); in draw_line_ver()
250 for(h = blend_area.y1; h <= y2; h++) { in draw_line_ver()
252 blend_dsc.mask_res = lv_draw_mask_apply(mask_buf, blend_area.x1, h, draw_area_w); in draw_line_ver()
269 blend_area.y1++; in draw_line_ver()
270 blend_area.y2++; in draw_line_ver()
318 lv_area_t blend_area; in draw_line_skew() local
319 blend_area.x1 = LV_MIN(p1.x, p2.x) - w; in draw_line_skew()
320 blend_area.x2 = LV_MAX(p1.x, p2.x) + w; in draw_line_skew()
321 blend_area.y1 = LV_MIN(p1.y, p2.y) - w; in draw_line_skew()
322 blend_area.y2 = LV_MAX(p1.y, p2.y) + w; in draw_line_skew()
327 bool is_common = _lv_area_intersect(&blend_area, &blend_area, draw_ctx->clip_area); in draw_line_skew()
373 int32_t draw_area_w = lv_area_get_width(&blend_area); in draw_line_skew()
378 size_t mask_buf_size = LV_MIN(lv_area_get_size(&blend_area), hor_res); in draw_line_skew()
381 lv_coord_t y2 = blend_area.y2; in draw_line_skew()
382 blend_area.y2 = blend_area.y1; in draw_line_skew()
389 blend_dsc.blend_area = &blend_area; in draw_line_skew()
393 blend_dsc.mask_area = &blend_area; in draw_line_skew()
396 for(h = blend_area.y1; h <= y2; h++) { in draw_line_skew()
397 blend_dsc.mask_res = lv_draw_mask_apply(&mask_buf[mask_p], blend_area.x1, h, draw_area_w); in draw_line_skew()
404 blend_area.y2 ++; in draw_line_skew()
410 blend_area.y1 = blend_area.y2 + 1; in draw_line_skew()
411 blend_area.y2 = blend_area.y1; in draw_line_skew()
418 if(blend_area.y1 != blend_area.y2) { in draw_line_skew()
419 blend_area.y2--; in draw_line_skew()