relace lv_coord_t with int32_t in some performance ciritcal functions

This commit is contained in:
Gabor Kiss-Vamosi
2020-02-04 02:09:15 +01:00
parent eef239fe70
commit 720322ca9e
27 changed files with 511 additions and 453 deletions

View File

@@ -48,6 +48,9 @@ static void get_rounded_area(int16_t angle, lv_coord_t radius, uint8_t tickness,
*/
void lv_draw_arc(lv_coord_t center_x, lv_coord_t center_y, uint16_t radius, uint16_t start_angle, uint16_t end_angle, const lv_area_t * clip_area, lv_draw_line_dsc_t * dsc)
{
if(dsc->opa <= LV_OPA_MIN) return;
if(dsc->width == 0) return;
lv_draw_rect_dsc_t cir_dsc;
lv_draw_rect_dsc_init(&cir_dsc);
cir_dsc.radius = LV_RADIUS_CIRCLE;
@@ -114,8 +117,8 @@ static void get_rounded_area(int16_t angle, lv_coord_t radius, uint8_t tickness,
int32_t thick_half = tickness / 2;
uint8_t thick_corr = tickness & 0x01 ? 0 : 1;
lv_coord_t rx_corr;
lv_coord_t ry_corr;
int32_t rx_corr;
int32_t ry_corr;
if(angle > 90 && angle < 270) rx_corr = 0;
else rx_corr = 0;