Home
last modified time | relevance | path

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

/lvgl-3.7.0/src/draw/sdl/
Dlv_draw_sdl_arc.c210 int32_t thick_half = thickness / 2; in get_cap_area() local
216 cir_x = ((radius - thick_half) * lv_trigo_sin((int16_t)(90 - angle))) >> (LV_TRIGO_SHIFT - ps); in get_cap_area()
217 cir_y = ((radius - thick_half) * lv_trigo_sin(angle)) >> (LV_TRIGO_SHIFT - ps); in get_cap_area()
222 out->x1 = cir_x - thick_half + thick_corr; in get_cap_area()
223 out->x2 = cir_x + thick_half; in get_cap_area()
227 out->x1 = cir_x - thick_half; in get_cap_area()
228 out->x2 = cir_x + thick_half - thick_corr; in get_cap_area()
233 out->y1 = cir_y - thick_half + thick_corr; in get_cap_area()
234 out->y2 = cir_y + thick_half; in get_cap_area()
238 out->y1 = cir_y - thick_half; in get_cap_area()
[all …]
/lvgl-3.7.0/src/draw/sw/
Dlv_draw_sw_arc.c504 int32_t thick_half = thickness / 2; in get_rounded_area() local
510 cir_x = ((radius - thick_half) * lv_trigo_sin(90 - angle)) >> (LV_TRIGO_SHIFT - ps); in get_rounded_area()
511 cir_y = ((radius - thick_half) * lv_trigo_sin(angle)) >> (LV_TRIGO_SHIFT - ps); in get_rounded_area()
516 res_area->x1 = cir_x - thick_half + thick_corr; in get_rounded_area()
517 res_area->x2 = cir_x + thick_half; in get_rounded_area()
521 res_area->x1 = cir_x - thick_half; in get_rounded_area()
522 res_area->x2 = cir_x + thick_half - thick_corr; in get_rounded_area()
527 res_area->y1 = cir_y - thick_half + thick_corr; in get_rounded_area()
528 res_area->y2 = cir_y + thick_half; in get_rounded_area()
532 res_area->y1 = cir_y - thick_half; in get_rounded_area()
[all …]