Lines Matching +full:- +full:y
55 static int32_t sh_cache_size = -1;
56 static int32_t sh_cache_r = -1;
86 lv_memset_00(draw_ctx->buf, lv_area_get_size(draw_ctx->buf_area) * sizeof(lv_color_t)); in lv_draw_sw_bg()
99 if(dsc->bg_opa <= LV_OPA_MIN) return; in draw_bg()
105 if(dsc->border_width > 1 && dsc->border_opa >= LV_OPA_MAX && dsc->radius != 0) { in draw_bg()
106 bg_coords.x1 += (dsc->border_side & LV_BORDER_SIDE_LEFT) ? 1 : 0; in draw_bg()
107 bg_coords.y1 += (dsc->border_side & LV_BORDER_SIDE_TOP) ? 1 : 0; in draw_bg()
108 bg_coords.x2 -= (dsc->border_side & LV_BORDER_SIDE_RIGHT) ? 1 : 0; in draw_bg()
109 bg_coords.y2 -= (dsc->border_side & LV_BORDER_SIDE_BOTTOM) ? 1 : 0; in draw_bg()
113 if(!_lv_area_intersect(&clipped_coords, &bg_coords, draw_ctx->clip_area)) return; in draw_bg()
115 lv_grad_dir_t grad_dir = dsc->bg_grad.dir; in draw_bg()
116 …lv_color_t bg_color = grad_dir == LV_GRAD_DIR_NONE ? dsc->bg_color : dsc->bg_grad.stops[0].colo… in draw_bg()
117 if(bg_color.full == dsc->bg_grad.stops[1].color.full) grad_dir = LV_GRAD_DIR_NONE; in draw_bg()
121 blend_dsc.blend_mode = dsc->blend_mode; in draw_bg()
125 if(!mask_any && dsc->radius == 0 && (grad_dir == LV_GRAD_DIR_NONE)) { in draw_bg()
127 blend_dsc.opa = dsc->bg_opa; in draw_bg()
136 lv_opa_t opa = dsc->bg_opa >= LV_OPA_MAX ? LV_OPA_COVER : dsc->bg_opa; in draw_bg()
142 int32_t rout = LV_MIN(dsc->radius, short_side >> 1); in draw_bg()
167 lv_grad_t * grad = lv_gradient_get(&dsc->bg_grad, coords_bg_w, coords_bg_h); in draw_bg()
169 blend_dsc.src_buf = grad->map + clipped_coords.x1 - bg_coords.x1; in draw_bg()
173 lv_dither_mode_t dither_mode = dsc->bg_grad.dither; in draw_bg()
178 blend_dsc.src_buf = grad->map; in draw_bg()
182 grad->filled = 0; /*Should we force refilling it each draw call ?*/ in draw_bg()
229 if(dither_func) dither_func(grad, blend_area.x1, h - bg_coords.y1, grad_size); in draw_bg()
231 if(grad_dir == LV_GRAD_DIR_VER) blend_dsc.color = grad->map[h - bg_coords.y1]; in draw_bg()
240 lv_coord_t bottom_y = bg_coords.y2 - h; in draw_bg()
254 if(dither_func) dither_func(grad, blend_area.x1, top_y - bg_coords.y1, grad_size); in draw_bg()
256 if(grad_dir == LV_GRAD_DIR_VER) blend_dsc.color = grad->map[top_y - bg_coords.y1]; in draw_bg()
265 if(dither_func) dither_func(grad, blend_area.x1, bottom_y - bg_coords.y1, grad_size); in draw_bg()
267 if(grad_dir == LV_GRAD_DIR_VER) blend_dsc.color = grad->map[bottom_y - bg_coords.y1]; in draw_bg()
279 center_coords.y2 = bg_coords.y2 - rout; in draw_bg()
283 blend_area.y2 = bg_coords.y2 - rout; in draw_bg()
292 int32_t h_end = bg_coords.y2 - rout; in draw_bg()
304 if(dither_func) dither_func(grad, blend_area.x1, h - bg_coords.y1, grad_size); in draw_bg()
306 if(grad_dir == LV_GRAD_DIR_VER) blend_dsc.color = grad->map[h - bg_coords.y1]; in draw_bg()
326 if(dsc->bg_img_src == NULL) return; in draw_bg_img()
327 if(dsc->bg_img_opa <= LV_OPA_MIN) return; in draw_bg_img()
330 if(!_lv_area_intersect(&clip_area, coords, draw_ctx->clip_area)) { in draw_bg_img()
334 const lv_area_t * clip_area_ori = draw_ctx->clip_area; in draw_bg_img()
335 draw_ctx->clip_area = &clip_area; in draw_bg_img()
337 lv_img_src_t src_type = lv_img_src_get_type(dsc->bg_img_src); in draw_bg_img()
340 …lv_txt_get_size(&size, dsc->bg_img_src, dsc->bg_img_symbol_font, 0, 0, LV_COORD_MAX, LV_TEXT_FLAG_… in draw_bg_img()
342 a.x1 = coords->x1 + lv_area_get_width(coords) / 2 - size.x / 2; in draw_bg_img()
343 a.x2 = a.x1 + size.x - 1; in draw_bg_img()
344 a.y1 = coords->y1 + lv_area_get_height(coords) / 2 - size.y / 2; in draw_bg_img()
345 a.y2 = a.y1 + size.y - 1; in draw_bg_img()
349 label_draw_dsc.font = dsc->bg_img_symbol_font; in draw_bg_img()
350 label_draw_dsc.color = dsc->bg_img_recolor; in draw_bg_img()
351 label_draw_dsc.opa = dsc->bg_img_opa; in draw_bg_img()
352 lv_draw_label(draw_ctx, &label_draw_dsc, &a, dsc->bg_img_src, NULL); in draw_bg_img()
356 lv_res_t res = lv_img_decoder_get_info(dsc->bg_img_src, &header); in draw_bg_img()
360 img_dsc.blend_mode = dsc->blend_mode; in draw_bg_img()
361 img_dsc.recolor = dsc->bg_img_recolor; in draw_bg_img()
362 img_dsc.recolor_opa = dsc->bg_img_recolor_opa; in draw_bg_img()
363 img_dsc.opa = dsc->bg_img_opa; in draw_bg_img()
366 if(dsc->bg_img_tiled == false) { in draw_bg_img()
368 area.x1 = coords->x1 + lv_area_get_width(coords) / 2 - header.w / 2; in draw_bg_img()
369 area.y1 = coords->y1 + lv_area_get_height(coords) / 2 - header.h / 2; in draw_bg_img()
370 area.x2 = area.x1 + header.w - 1; in draw_bg_img()
371 area.y2 = area.y1 + header.h - 1; in draw_bg_img()
373 lv_draw_img(draw_ctx, &img_dsc, &area, dsc->bg_img_src); in draw_bg_img()
377 area.y1 = coords->y1; in draw_bg_img()
378 area.y2 = area.y1 + header.h - 1; in draw_bg_img()
380 for(; area.y1 <= coords->y2; area.y1 += header.h, area.y2 += header.h) { in draw_bg_img()
382 area.x1 = coords->x1; in draw_bg_img()
383 area.x2 = area.x1 + header.w - 1; in draw_bg_img()
384 for(; area.x1 <= coords->x2; area.x1 += header.w, area.x2 += header.w) { in draw_bg_img()
385 lv_draw_img(draw_ctx, &img_dsc, &area, dsc->bg_img_src); in draw_bg_img()
395 draw_ctx->clip_area = clip_area_ori; in draw_bg_img()
400 if(dsc->border_opa <= LV_OPA_MIN) return; in draw_border()
401 if(dsc->border_width == 0) return; in draw_border()
402 if(dsc->border_side == LV_BORDER_SIDE_NONE) return; in draw_border()
403 if(dsc->border_post) return; in draw_border()
407 int32_t rout = dsc->radius; in draw_border()
414 …area_inner.x1 += ((dsc->border_side & LV_BORDER_SIDE_LEFT) ? dsc->border_width : - (dsc->border_wi… in draw_border()
415 …area_inner.x2 -= ((dsc->border_side & LV_BORDER_SIDE_RIGHT) ? dsc->border_width : - (dsc->border_w… in draw_border()
416 …area_inner.y1 += ((dsc->border_side & LV_BORDER_SIDE_TOP) ? dsc->border_width : - (dsc->border_wid… in draw_border()
417 …area_inner.y2 -= ((dsc->border_side & LV_BORDER_SIDE_BOTTOM) ? dsc->border_width : - (dsc->border_… in draw_border()
419 lv_coord_t rin = rout - dsc->border_width; in draw_border()
422 …rder_generic(draw_ctx, coords, &area_inner, rout, rin, dsc->border_color, dsc->border_opa, dsc->bl… in draw_border()
431 if(dsc->shadow_width == 0) return; in draw_shadow()
432 if(dsc->shadow_opa <= LV_OPA_MIN) return; in draw_shadow()
434 if(dsc->shadow_width == 1 && dsc->shadow_spread <= 0 && in draw_shadow()
435 dsc->shadow_ofs_x == 0 && dsc->shadow_ofs_y == 0) { in draw_shadow()
441 core_area.x1 = coords->x1 + dsc->shadow_ofs_x - dsc->shadow_spread; in draw_shadow()
442 core_area.x2 = coords->x2 + dsc->shadow_ofs_x + dsc->shadow_spread; in draw_shadow()
443 core_area.y1 = coords->y1 + dsc->shadow_ofs_y - dsc->shadow_spread; in draw_shadow()
444 core_area.y2 = coords->y2 + dsc->shadow_ofs_y + dsc->shadow_spread; in draw_shadow()
448 shadow_area.x1 = core_area.x1 - dsc->shadow_width / 2 - 1; in draw_shadow()
449 shadow_area.x2 = core_area.x2 + dsc->shadow_width / 2 + 1; in draw_shadow()
450 shadow_area.y1 = core_area.y1 - dsc->shadow_width / 2 - 1; in draw_shadow()
451 shadow_area.y2 = core_area.y2 + dsc->shadow_width / 2 + 1; in draw_shadow()
453 lv_opa_t opa = dsc->shadow_opa; in draw_shadow()
459 if(!_lv_area_intersect(&draw_area, &shadow_area, draw_ctx->clip_area)) return; in draw_shadow()
464 lv_area_increase(&bg_area, -1, -1); in draw_shadow()
467 int32_t r_bg = dsc->radius; in draw_shadow()
472 int32_t r_sh = dsc->radius; in draw_shadow()
477 int32_t corner_size = dsc->shadow_width + r_sh; in draw_shadow()
490 shadow_draw_corner_buf(&core_area, (uint16_t *)sh_buf, dsc->shadow_width, r_sh); in draw_shadow()
501 shadow_draw_corner_buf(&core_area, (uint16_t *)sh_buf, dsc->shadow_width, r_sh); in draw_shadow()
507 …if(mask_any || dsc->bg_opa < LV_OPA_COVER || dsc->blend_mode != LV_BLEND_MODE_NORMAL) simple = fal… in draw_shadow()
521 lv_coord_t y; in draw_shadow() local
529 blend_dsc.color = dsc->shadow_color; in draw_shadow()
530 blend_dsc.opa = dsc->shadow_opa; in draw_shadow()
531 blend_dsc.blend_mode = dsc->blend_mode; in draw_shadow()
540 blend_area.x1 = shadow_area.x2 - corner_size + 1; in draw_shadow()
542 blend_area.y2 = shadow_area.y1 + corner_size - 1; in draw_shadow()
547 if(_lv_area_intersect(&clip_area_sub, &blend_area, draw_ctx->clip_area) && in draw_shadow()
551 sh_buf_tmp += (clip_area_sub.y1 - shadow_area.y1) * corner_size; in draw_shadow()
552 sh_buf_tmp += clip_area_sub.x1 - (shadow_area.x2 - corner_size + 1); in draw_shadow()
562 for(y = clip_area_sub.y1; y <= clip_area_sub.y2; y++) { in draw_shadow()
563 blend_area.y1 = y; in draw_shadow()
564 blend_area.y2 = y; in draw_shadow()
568 blend_dsc.mask_res = lv_draw_mask_apply(mask_buf, clip_area_sub.x1, y, w); in draw_shadow()
583 blend_area.x1 = shadow_area.x2 - corner_size + 1; in draw_shadow()
584 blend_area.y1 = shadow_area.y2 - corner_size + 1; in draw_shadow()
590 if(_lv_area_intersect(&clip_area_sub, &blend_area, draw_ctx->clip_area) && in draw_shadow()
594 sh_buf_tmp += (blend_area.y2 - clip_area_sub.y2) * corner_size; in draw_shadow()
595 sh_buf_tmp += clip_area_sub.x1 - (shadow_area.x2 - corner_size + 1); in draw_shadow()
605 for(y = clip_area_sub.y2; y >= clip_area_sub.y1; y--) { in draw_shadow()
606 blend_area.y1 = y; in draw_shadow()
607 blend_area.y2 = y; in draw_shadow()
611 blend_dsc.mask_res = lv_draw_mask_apply(mask_buf, clip_area_sub.x1, y, w); in draw_shadow()
625 blend_area.x2 = shadow_area.x2 - corner_size; in draw_shadow()
627 blend_area.y2 = shadow_area.y1 + corner_size - 1; in draw_shadow()
630 if(_lv_area_intersect(&clip_area_sub, &blend_area, draw_ctx->clip_area) && in draw_shadow()
634 sh_buf_tmp += (clip_area_sub.y1 - blend_area.y1) * corner_size; in draw_shadow()
650 for(y = clip_area_sub.y1; y <= clip_area_sub.y2; y++) { in draw_shadow()
651 blend_area.y1 = y; in draw_shadow()
652 blend_area.y2 = y; in draw_shadow()
656 blend_dsc.mask_res = lv_draw_mask_apply(mask_buf, clip_area_sub.x1, y, w); in draw_shadow()
661 … blend_dsc.opa = opa == LV_OPA_COVER ? sh_buf_tmp[0] : (sh_buf_tmp[0] * dsc->shadow_opa) >> 8; in draw_shadow()
668 blend_dsc.opa = dsc->shadow_opa; /*Restore*/ in draw_shadow()
672 blend_area.x2 = shadow_area.x2 - corner_size; in draw_shadow()
673 blend_area.y1 = shadow_area.y2 - corner_size + 1; in draw_shadow()
677 if(_lv_area_intersect(&clip_area_sub, &blend_area, draw_ctx->clip_area) && in draw_shadow()
681 sh_buf_tmp += (blend_area.y2 - clip_area_sub.y2) * corner_size; in draw_shadow()
696 for(y = clip_area_sub.y2; y >= clip_area_sub.y1; y--) { in draw_shadow()
697 blend_area.y1 = y; in draw_shadow()
698 blend_area.y2 = y; in draw_shadow()
706 blend_dsc.mask_res = lv_draw_mask_apply(mask_buf, clip_area_sub.x1, y, w); in draw_shadow()
711 … blend_dsc.opa = opa == LV_OPA_COVER ? sh_buf_tmp[0] : (sh_buf_tmp[0] * dsc->shadow_opa) >> 8; in draw_shadow()
720 blend_dsc.opa = dsc->shadow_opa; /*Restore*/ in draw_shadow()
723 blend_area.x1 = shadow_area.x2 - corner_size + 1; in draw_shadow()
726 blend_area.y2 = shadow_area.y2 - corner_size; in draw_shadow()
732 if(_lv_area_intersect(&clip_area_sub, &blend_area, draw_ctx->clip_area) && in draw_shadow()
736 sh_buf_tmp += (corner_size - 1) * corner_size; in draw_shadow()
737 sh_buf_tmp += clip_area_sub.x1 - (shadow_area.x2 - corner_size + 1); in draw_shadow()
748 for(y = clip_area_sub.y1; y <= clip_area_sub.y2; y++) { in draw_shadow()
749 blend_area.y1 = y; in draw_shadow()
750 blend_area.y2 = y; in draw_shadow()
754 blend_dsc.mask_res = lv_draw_mask_apply(mask_buf, clip_area_sub.x1, y, w); in draw_shadow()
764 for(y = 0; y < corner_size; y++) { in draw_shadow()
767 lv_opa_t * end = sh_buf_tmp + corner_size - 1; in draw_shadow()
774 end--; in draw_shadow()
781 blend_area.x2 = shadow_area.x1 + corner_size - 1; in draw_shadow()
783 blend_area.y2 = shadow_area.y2 - corner_size; in draw_shadow()
787 blend_area.x2 = LV_MIN(blend_area.x2, w_half - 1); in draw_shadow()
789 if(_lv_area_intersect(&clip_area_sub, &blend_area, draw_ctx->clip_area) && in draw_shadow()
793 sh_buf_tmp += (corner_size - 1) * corner_size; in draw_shadow()
794 sh_buf_tmp += clip_area_sub.x1 - blend_area.x1; in draw_shadow()
804 for(y = clip_area_sub.y1; y <= clip_area_sub.y2; y++) { in draw_shadow()
805 blend_area.y1 = y; in draw_shadow()
806 blend_area.y2 = y; in draw_shadow()
810 blend_dsc.mask_res = lv_draw_mask_apply(mask_buf, clip_area_sub.x1, y, w); in draw_shadow()
821 blend_area.x2 = shadow_area.x1 + corner_size - 1; in draw_shadow()
823 blend_area.y2 = shadow_area.y1 + corner_size - 1; in draw_shadow()
825 blend_area.x2 = LV_MIN(blend_area.x2, w_half - 1); in draw_shadow()
828 if(_lv_area_intersect(&clip_area_sub, &blend_area, draw_ctx->clip_area) && in draw_shadow()
832 sh_buf_tmp += (clip_area_sub.y1 - blend_area.y1) * corner_size; in draw_shadow()
833 sh_buf_tmp += clip_area_sub.x1 - blend_area.x1; in draw_shadow()
844 for(y = clip_area_sub.y1; y <= clip_area_sub.y2; y++) { in draw_shadow()
845 blend_area.y1 = y; in draw_shadow()
846 blend_area.y2 = y; in draw_shadow()
850 blend_dsc.mask_res = lv_draw_mask_apply(mask_buf, clip_area_sub.x1, y, w); in draw_shadow()
866 blend_area.x2 = shadow_area.x1 + corner_size - 1; in draw_shadow()
867 blend_area.y1 = shadow_area.y2 - corner_size + 1; in draw_shadow()
871 blend_area.x2 = LV_MIN(blend_area.x2, w_half - 1); in draw_shadow()
873 if(_lv_area_intersect(&clip_area_sub, &blend_area, draw_ctx->clip_area) && in draw_shadow()
877 sh_buf_tmp += (blend_area.y2 - clip_area_sub.y2) * corner_size; in draw_shadow()
878 sh_buf_tmp += clip_area_sub.x1 - blend_area.x1; in draw_shadow()
888 for(y = clip_area_sub.y2; y >= clip_area_sub.y1; y--) { in draw_shadow()
889 blend_area.y1 = y; in draw_shadow()
890 blend_area.y2 = y; in draw_shadow()
894 blend_dsc.mask_res = lv_draw_mask_apply(mask_buf, clip_area_sub.x1, y, w); in draw_shadow()
908 blend_area.x2 = shadow_area.x2 - corner_size; in draw_shadow()
910 blend_area.y2 = shadow_area.y2 - corner_size; in draw_shadow()
913 if(_lv_area_intersect(&clip_area_sub, &blend_area, draw_ctx->clip_area) && in draw_shadow()
919 for(y = clip_area_sub.y1; y <= clip_area_sub.y2; y++) { in draw_shadow()
920 blend_area.y1 = y; in draw_shadow()
921 blend_area.y2 = y; in draw_shadow()
924 blend_dsc.mask_res = lv_draw_mask_apply(mask_buf, clip_area_sub.x1, y, w); in draw_shadow()
953 sh_area.x2 = sw / 2 + r - 1 - ((sw & 1) ? 0 : 1); in shadow_draw_corner_buf()
956 sh_area.x1 = sh_area.x2 - lv_area_get_width(coords); in shadow_draw_corner_buf()
968 int32_t y; in shadow_draw_corner_buf() local
971 for(y = 0; y < size; y++) { in shadow_draw_corner_buf()
973 lv_draw_mask_res_t mask_res = mask_param.dsc.cb(mask_line, 0, y, size, &mask_param); in shadow_draw_corner_buf()
981 if(mask_line[i] == mask_line[i - 1]) sh_ups_tmp_buf[i] = sh_ups_tmp_buf[i - 1]; in shadow_draw_corner_buf()
1036 if((sw & 1) == 0) s_left--; in shadow_blur_corner()
1042 int32_t y; in shadow_blur_corner() local
1046 for(y = 0; y < size; y++) { in shadow_blur_corner()
1047 int32_t v = sh_ups_tmp_buf[size - 1] * sw; in shadow_blur_corner()
1048 for(x = size - 1; x >= 0; x--) { in shadow_blur_corner()
1054 v -= right_val; in shadow_blur_corner()
1058 if(x - s_left - 1 < 0) left_val = sh_ups_tmp_buf[0]; in shadow_blur_corner()
1059 else left_val = sh_ups_tmp_buf[x - s_left - 1]; in shadow_blur_corner()
1079 for(y = 0; y < size ; y++, sh_ups_tmp_buf += size) { in shadow_blur_corner()
1080 sh_ups_blur_buf[y] = v < 0 ? 0 : (v >> SHADOW_UPSCALE_SHIFT); in shadow_blur_corner()
1084 if(y - s_right <= 0) top_val = sh_ups_tmp_buf[0]; in shadow_blur_corner()
1085 else top_val = sh_ups_buf[(y - s_right) * size + x]; in shadow_blur_corner()
1086 v -= top_val; in shadow_blur_corner()
1090 if(y + s_left + 1 < size) bottom_val = sh_ups_buf[(y + s_left + 1) * size + x]; in shadow_blur_corner()
1091 else bottom_val = sh_ups_buf[(size - 1) * size + x]; in shadow_blur_corner()
1097 for(y = 0; y < size; y++, sh_ups_tmp_buf += size) { in shadow_blur_corner()
1098 (*sh_ups_tmp_buf) = sh_ups_blur_buf[y]; in shadow_blur_corner()
1108 if(dsc->outline_opa <= LV_OPA_MIN) return; in draw_outline()
1109 if(dsc->outline_width == 0) return; in draw_outline()
1111 lv_opa_t opa = dsc->outline_opa; in draw_outline()
1120 lv_coord_t pad = dsc->outline_pad - 1; in draw_outline()
1121 area_inner.x1 -= pad; in draw_outline()
1122 area_inner.y1 -= pad; in draw_outline()
1129 area_outer.x1 -= dsc->outline_width; in draw_outline()
1130 area_outer.x2 += dsc->outline_width; in draw_outline()
1131 area_outer.y1 -= dsc->outline_width; in draw_outline()
1132 area_outer.y2 += dsc->outline_width; in draw_outline()
1136 int32_t rin = dsc->radius; in draw_outline()
1140 lv_coord_t rout = rin + dsc->outline_width; in draw_outline()
1142 …draw_border_generic(draw_ctx, &area_outer, &area_inner, rout, rin, dsc->outline_color, dsc->outlin… in draw_outline()
1143 dsc->blend_mode); in draw_outline()
1163 if(!_lv_area_intersect(&draw_area, outer_area, draw_ctx->clip_area)) return; in draw_border_generic()
1191 /*Calculate the x and y coordinates where the straight parts area*/ in draw_border_generic()
1193 core_area.x1 = LV_MAX(outer_area->x1 + rout, inner_area->x1); in draw_border_generic()
1194 core_area.x2 = LV_MIN(outer_area->x2 - rout, inner_area->x2); in draw_border_generic()
1195 core_area.y1 = LV_MAX(outer_area->y1 + rout, inner_area->y1); in draw_border_generic()
1196 core_area.y2 = LV_MIN(outer_area->y2 - rout, inner_area->y2); in draw_border_generic()
1199 bool top_side = outer_area->y1 <= inner_area->y1 ? true : false; in draw_border_generic()
1200 bool bottom_side = outer_area->y2 >= inner_area->y2 ? true : false; in draw_border_generic()
1229 bool left_side = outer_area->x1 <= inner_area->x1 ? true : false; in draw_border_generic()
1230 bool right_side = outer_area->x2 >= inner_area->x2 ? true : false; in draw_border_generic()
1243 blend_area.y1 = outer_area->y1; in draw_border_generic()
1244 blend_area.y2 = inner_area->y1 - 1; in draw_border_generic()
1251 blend_area.y1 = inner_area->y2 + 1; in draw_border_generic()
1252 blend_area.y2 = outer_area->y2; in draw_border_generic()
1257 blend_area.x1 = outer_area->x1; in draw_border_generic()
1258 blend_area.x2 = inner_area->x1 - 1; in draw_border_generic()
1265 blend_area.x1 = inner_area->x2 + 1; in draw_border_generic()
1266 blend_area.x2 = outer_area->x2; in draw_border_generic()
1280 lv_coord_t max_h = LV_MAX(rout, inner_area->y1 - outer_area->y1); in draw_border_generic()
1282 lv_coord_t top_y = outer_area->y1 + h; in draw_border_generic()
1283 lv_coord_t bottom_y = outer_area->y2 - h; in draw_border_generic()
1305 blend_area.x2 = LV_MIN(draw_area.x2, core_area.x1 - 1); in draw_border_generic()
1388 bool top_side = outer_area->y1 <= inner_area->y1 ? true : false; in draw_border_simple()
1389 bool bottom_side = outer_area->y2 >= inner_area->y2 ? true : false; in draw_border_simple()
1390 bool left_side = outer_area->x1 <= inner_area->x1 ? true : false; in draw_border_simple()
1391 bool right_side = outer_area->x2 >= inner_area->x2 ? true : false; in draw_border_simple()
1394 a.x1 = outer_area->x1; in draw_border_simple()
1395 a.x2 = outer_area->x2; in draw_border_simple()
1396 a.y1 = outer_area->y1; in draw_border_simple()
1397 a.y2 = inner_area->y1 - 1; in draw_border_simple()
1403 a.y1 = inner_area->y2 + 1; in draw_border_simple()
1404 a.y2 = outer_area->y2; in draw_border_simple()
1410 a.x1 = outer_area->x1; in draw_border_simple()
1411 a.x2 = inner_area->x1 - 1; in draw_border_simple()
1412 a.y1 = (top_side) ? inner_area->y1 : outer_area->y1; in draw_border_simple()
1413 a.y2 = (bottom_side) ? inner_area->y2 : outer_area->y2; in draw_border_simple()
1419 a.x1 = inner_area->x2 + 1; in draw_border_simple()
1420 a.x2 = outer_area->x2; in draw_border_simple()