Searched refs:grad_w (Results 1 – 1 of 1) sorted by relevance
581 lv_coord_t grad_w = lv_area_get_width(&grad_area); in draw_rect_grad() local582 uint16_t i_step = LV_MATH_MAX(LV_CPICKER_DEF_QF, 360 / grad_w); in draw_rect_grad()595 lv_coord_t xi = (i * grad_w) / 360; in draw_rect_grad()596 lv_coord_t xi2 = ((i + i_step) * grad_w) / 360; in draw_rect_grad()598 rect_area.x1 = LV_MATH_MIN(grad_area.x1 + xi, grad_area.x1 + grad_w - i_step); in draw_rect_grad()600 rect_area.x2 = LV_MATH_MIN(grad_area.x1 + xi2, grad_area.x1 + grad_w - i_step); in draw_rect_grad()