1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

move lv_utils to src/lv_misc

This commit is contained in:
Gabor Kiss-Vamosi 2019-03-18 16:17:32 +01:00
parent 627383fd0d
commit 1927376fe5
2 changed files with 4 additions and 6 deletions

View File

@ -52,7 +52,7 @@ char * lv_utils_num_to_str(int32_t num, char * buf)
int8_t i = 0;
if (num < 0) {
buf[digitCount++] = '-';
num = abs(num);
num = LV_MATH_ABS(num);
++i;
}
while (num) {

View File

@ -844,12 +844,10 @@ static void lv_chart_draw_areas(lv_obj_t * chart, const lv_area_t * mask)
lv_opa_t opa_scale = lv_obj_get_opa_scale(chart);
lv_style_t style;
lv_style_copy(&style, &lv_style_plain);
style.line.opa = ext->series.opa;
style.line.width = ext->series.width;
/*Go through all data lines*/
LV_LL_READ_BACK(ext->series_ll, ser) {
style.line.color = ser->color;
style.body.main_color = ser->color;
p1.x = 0 + x_ofs;
p2.x = 0 + x_ofs;
@ -877,9 +875,9 @@ static void lv_chart_draw_areas(lv_obj_t * chart, const lv_area_t * mask)
triangle_points[1].y = y_ofs + h;
triangle_points[2].x = p1.x;
triangle_points[2].y = y_ofs + h;
lv_draw_triangle(triangle_points, mask, style.line.color, opa_scale);
lv_draw_triangle(triangle_points, mask, &style, opa_scale);
triangle_points[2] = p2;
lv_draw_triangle(triangle_points, mask, style.line.color, opa_scale);
lv_draw_triangle(triangle_points, mask, &style, opa_scale);
}
p_prev = p_act;
}