Home
last modified time | relevance | path

Searched refs:corner_area (Results 1 – 2 of 2) sorted by relevance

/lvgl-3.7.0/src/misc/
Dlv_area.c260 lv_area_t corner_area; in _lv_area_is_point_on() local
262 corner_area.x1 = a_p->x1; in _lv_area_is_point_on()
263 corner_area.x2 = a_p->x1 + radius; in _lv_area_is_point_on()
264 corner_area.y1 = a_p->y1; in _lv_area_is_point_on()
265 corner_area.y2 = a_p->y1 + radius; in _lv_area_is_point_on()
266 if(_lv_area_is_point_on(&corner_area, p_p, 0)) { in _lv_area_is_point_on()
267 corner_area.x2 += radius; in _lv_area_is_point_on()
268 corner_area.y2 += radius; in _lv_area_is_point_on()
269 return lv_point_within_circle(&corner_area, p_p); in _lv_area_is_point_on()
272 corner_area.y1 = a_p->y2 - radius; in _lv_area_is_point_on()
[all …]
/lvgl-3.7.0/src/draw/sdl/
Dlv_draw_sdl_rect.c286 lv_area_t corner_area, dst_area; in lv_draw_sdl_rect_bg_frag_draw_corners() local
288 corner_area.x1 = coords->x1; in lv_draw_sdl_rect_bg_frag_draw_corners()
289 corner_area.y1 = coords->y1; in lv_draw_sdl_rect_bg_frag_draw_corners()
290 corner_area.x2 = coords->x1 + frag_size - 1; in lv_draw_sdl_rect_bg_frag_draw_corners()
291 corner_area.y2 = coords->y1 + frag_size - 1; in lv_draw_sdl_rect_bg_frag_draw_corners()
292 if(_lv_area_intersect(&dst_area, &corner_area, clip)) { in lv_draw_sdl_rect_bg_frag_draw_corners()
297 …lv_coord_t sx = (lv_coord_t)(dst_area.x1 - corner_area.x1), sy = (lv_coord_t)(dst_area.y1 - corner… in lv_draw_sdl_rect_bg_frag_draw_corners()
302 corner_area.x1 = LV_MAX(coords->x2 - frag_size + 1, coords->x1 + frag_size); in lv_draw_sdl_rect_bg_frag_draw_corners()
303 corner_area.x2 = coords->x2; in lv_draw_sdl_rect_bg_frag_draw_corners()
304 if(_lv_area_intersect(&dst_area, &corner_area, clip)) { in lv_draw_sdl_rect_bg_frag_draw_corners()
[all …]