mirror of
https://github.com/lvgl/lvgl.git
synced 2026-05-10 04:37:55 +08:00
chore: remove multiple semicolons (#8723)
Signed-off-by: liuhongchao <liuhongchao@xiaomi.com>
This commit is contained in:
@@ -45,7 +45,7 @@ static void sample_fragment_ctor(lv_fragment_t * self, void * args)
|
||||
static lv_obj_t * sample_fragment_create_obj(lv_fragment_t * self, lv_obj_t * parent)
|
||||
{
|
||||
lv_obj_t * label = lv_label_create(parent);
|
||||
lv_obj_set_style_bg_opa(label, LV_OPA_COVER, 0);;
|
||||
lv_obj_set_style_bg_opa(label, LV_OPA_COVER, 0);
|
||||
lv_label_set_text_fmt(label, "Hello, %s!", ((struct sample_fragment_t *) self)->name);
|
||||
return label;
|
||||
}
|
||||
|
||||
@@ -1009,7 +1009,7 @@ void lv_obj_set_transform(lv_obj_t * obj, const lv_matrix_t * matrix)
|
||||
|
||||
lv_obj_allocate_spec_attr(obj);
|
||||
if(!obj->spec_attr->matrix) {
|
||||
obj->spec_attr->matrix = lv_malloc(sizeof(lv_matrix_t));;
|
||||
obj->spec_attr->matrix = lv_malloc(sizeof(lv_matrix_t));
|
||||
LV_ASSERT_MALLOC(obj->spec_attr->matrix);
|
||||
}
|
||||
|
||||
|
||||
@@ -203,7 +203,7 @@ static void _handle_collision(unsigned long index, lv_map_item_t * item)
|
||||
{
|
||||
if(table->overflow_list[index] == NULL) {
|
||||
/* Create the list. */
|
||||
lv_array_t * list = (lv_array_t *) lv_malloc(sizeof(lv_array_t));;
|
||||
lv_array_t * list = (lv_array_t *) lv_malloc(sizeof(lv_array_t));
|
||||
lv_array_init(list, LV_ARRAY_DEFAULT_CAPACITY, sizeof(lv_map_item_t));
|
||||
lv_array_push_back(list, item);
|
||||
table->overflow_list[index] = list;
|
||||
|
||||
@@ -533,9 +533,9 @@ static void LV_ATTRIBUTE_FAST_MEM rgb888_image_blend(lv_draw_sw_blend_image_dsc_
|
||||
for(y = 0; y < h; y++) {
|
||||
for(dest_x = 0, src_x = 0; dest_x < w; dest_x++, src_x += src_px_size) {
|
||||
color_argb.alpha = (opa * mask_buf[dest_x]) >> 8;
|
||||
color_argb.red = (src_buf[src_x + 2] * color_argb.alpha) >> 8;;
|
||||
color_argb.green = (src_buf[src_x + 1] * color_argb.alpha) >> 8;;
|
||||
color_argb.blue = (src_buf[src_x + 0] * color_argb.alpha) >> 8;;
|
||||
color_argb.red = (src_buf[src_x + 2] * color_argb.alpha) >> 8;
|
||||
color_argb.green = (src_buf[src_x + 1] * color_argb.alpha) >> 8;
|
||||
color_argb.blue = (src_buf[src_x + 0] * color_argb.alpha) >> 8;
|
||||
dest_buf_c32[dest_x] = lv_color_32_32_mix_premul(color_argb, dest_buf_c32[dest_x], &cache);
|
||||
}
|
||||
dest_buf_c32 = drawbuf_next_row(dest_buf_c32, dest_stride);
|
||||
|
||||
@@ -1137,7 +1137,7 @@ static void circ_calc_aa4(lv_draw_sw_mask_radius_circle_dsc_t * c, int32_t radiu
|
||||
|
||||
cir_x[cir_size] = x_int[0] - 1;
|
||||
cir_y[cir_size] = y_8th_cnt;
|
||||
c->cir_opa[cir_size] = 1 * 4 + x_fract[1] + x_fract[2] + x_fract[3];;
|
||||
c->cir_opa[cir_size] = 1 * 4 + x_fract[1] + x_fract[2] + x_fract[3];
|
||||
c->cir_opa[cir_size] *= 16;
|
||||
cir_size++;
|
||||
}
|
||||
@@ -1151,7 +1151,7 @@ static void circ_calc_aa4(lv_draw_sw_mask_radius_circle_dsc_t * c, int32_t radiu
|
||||
|
||||
cir_x[cir_size] = x_int[0] - 1;
|
||||
cir_y[cir_size] = y_8th_cnt;
|
||||
c->cir_opa[cir_size] = 2 * 4 + x_fract[2] + x_fract[3];;
|
||||
c->cir_opa[cir_size] = 2 * 4 + x_fract[2] + x_fract[3];
|
||||
c->cir_opa[cir_size] *= 16;
|
||||
cir_size++;
|
||||
}
|
||||
@@ -1165,7 +1165,7 @@ static void circ_calc_aa4(lv_draw_sw_mask_radius_circle_dsc_t * c, int32_t radiu
|
||||
|
||||
cir_x[cir_size] = x_int[0] - 1;
|
||||
cir_y[cir_size] = y_8th_cnt;
|
||||
c->cir_opa[cir_size] = 3 * 4 + x_fract[3];;
|
||||
c->cir_opa[cir_size] = 3 * 4 + x_fract[3];
|
||||
c->cir_opa[cir_size] *= 16;
|
||||
cir_size++;
|
||||
}
|
||||
|
||||
@@ -48,8 +48,8 @@ static void _rotationXYZ(Matrix* m, float degreeX, float degreeY, float degreeZ)
|
||||
auto radianZ = deg2rad(degreeZ);
|
||||
|
||||
auto cx = cosf(radianX), sx = sinf(radianX);
|
||||
auto cy = cosf(radianY), sy = sinf(radianY);;
|
||||
auto cz = cosf(radianZ), sz = sinf(radianZ);;
|
||||
auto cy = cosf(radianY), sy = sinf(radianY);
|
||||
auto cz = cosf(radianZ), sz = sinf(radianZ);
|
||||
m->e11 = cy * cz;
|
||||
m->e12 = -cy * sz;
|
||||
m->e21 = sx * sy * cz + cx * sz;
|
||||
|
||||
@@ -93,7 +93,7 @@ static bool _clockwise(const Point* pts, uint32_t n)
|
||||
for (uint32_t i = 0; i < n - 1; i++) {
|
||||
area += cross(pts[i], pts[i + 1]);
|
||||
}
|
||||
area += cross(pts[n - 1], pts[0]);;
|
||||
area += cross(pts[n - 1], pts[0]);
|
||||
|
||||
return area < 0.0f;
|
||||
}
|
||||
|
||||
@@ -263,7 +263,7 @@ struct RenderShape
|
||||
float strokeMiterlimit() const
|
||||
{
|
||||
if (!stroke) return 4.0f;
|
||||
return stroke->miterlimit;;
|
||||
return stroke->miterlimit;
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -3756,7 +3756,7 @@ static bool _svgLoaderParserForValidCheckXmlOpen(SvgLoaderData* loader, const ch
|
||||
static bool _svgLoaderParserForValidCheck(void* data, SimpleXMLType type, const char* content, unsigned int length)
|
||||
{
|
||||
SvgLoaderData* loader = (SvgLoaderData*)data;
|
||||
bool res = true;;
|
||||
bool res = true;
|
||||
|
||||
switch (type) {
|
||||
case SimpleXMLType::Open:
|
||||
|
||||
@@ -733,7 +733,7 @@ static unique_ptr<Scene> _useBuildHelper(SvgLoaderData& loaderData, const SvgNod
|
||||
|
||||
auto width = (symbol.hasWidth ? symbol.w : vBox.w);
|
||||
if (node->node.use.isWidthSet) width = node->node.use.w;
|
||||
auto height = (symbol.hasHeight ? symbol.h : vBox.h);;
|
||||
auto height = (symbol.hasHeight ? symbol.h : vBox.h);
|
||||
if (node->node.use.isHeightSet) height = node->node.use.h;
|
||||
auto vw = (symbol.hasViewBox ? symbol.vw : width);
|
||||
auto vh = (symbol.hasViewBox ? symbol.vh : height);
|
||||
|
||||
@@ -88,7 +88,7 @@ struct SwShapeTask : SwTask
|
||||
Additionally, the stroke style should not be dashed. */
|
||||
bool antialiasing(float strokeWidth)
|
||||
{
|
||||
return strokeWidth < 2.0f || rshape->stroke->dashCnt > 0 || rshape->stroke->strokeFirst || rshape->strokeTrim() || rshape->stroke->color[3] < 255;;
|
||||
return strokeWidth < 2.0f || rshape->stroke->dashCnt > 0 || rshape->stroke->strokeFirst || rshape->strokeTrim() || rshape->stroke->color[3] < 255;
|
||||
}
|
||||
|
||||
float validStrokeWidth()
|
||||
|
||||
@@ -384,7 +384,7 @@ static void mem_observer_cb(lv_observer_t * observer, lv_subject_t * subject)
|
||||
lv_obj_t * label = lv_observer_get_target(observer);
|
||||
const lv_mem_monitor_t * mon = lv_subject_get_pointer(subject);
|
||||
|
||||
size_t used_size = mon->total_size - mon->free_size;;
|
||||
size_t used_size = mon->total_size - mon->free_size;
|
||||
size_t used_kb = used_size / 1024;
|
||||
size_t used_kb_tenth = (used_size - (used_kb * 1024)) / 102;
|
||||
size_t max_used_kb = mon->max_used / 1024;
|
||||
|
||||
@@ -66,7 +66,7 @@ void * lv_xml_table_column_create(lv_xml_parser_state_t * state, const char ** a
|
||||
LV_UNUSED(attrs);
|
||||
|
||||
/*Nothing to create*/
|
||||
return lv_xml_state_get_parent(state);;
|
||||
return lv_xml_state_get_parent(state);
|
||||
}
|
||||
|
||||
void lv_xml_table_column_apply(lv_xml_parser_state_t * state, const char ** attrs)
|
||||
@@ -90,7 +90,7 @@ void * lv_xml_table_cell_create(lv_xml_parser_state_t * state, const char ** att
|
||||
LV_UNUSED(attrs);
|
||||
|
||||
/*Nothing to create*/
|
||||
return lv_xml_state_get_parent(state);;
|
||||
return lv_xml_state_get_parent(state);
|
||||
}
|
||||
|
||||
void lv_xml_table_cell_apply(lv_xml_parser_state_t * state, const char ** attrs)
|
||||
|
||||
@@ -950,7 +950,7 @@ static int32_t lv_span_get_style_text_decor(lv_obj_t * par, lv_span_t * span)
|
||||
lv_style_value_t value;
|
||||
lv_style_res_t res = lv_style_get_prop(&span->style, LV_STYLE_TEXT_DECOR, &value);
|
||||
if(res != LV_STYLE_RES_FOUND) {
|
||||
decor = (lv_text_decor_t)lv_obj_get_style_text_decor(par, LV_PART_MAIN);;
|
||||
decor = (lv_text_decor_t)lv_obj_get_style_text_decor(par, LV_PART_MAIN);
|
||||
}
|
||||
else {
|
||||
decor = (int32_t)value.num;
|
||||
@@ -1010,7 +1010,7 @@ static void lv_draw_span(lv_obj_t * obj, lv_layer_t * layer)
|
||||
|
||||
/* init draw variable */
|
||||
lv_text_flag_t txt_flag = LV_TEXT_FLAG_NONE;
|
||||
int32_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN);;
|
||||
int32_t line_space = lv_obj_get_style_text_line_space(obj, LV_PART_MAIN);
|
||||
int32_t max_width = lv_area_get_width(&coords);
|
||||
int32_t indent = convert_indent_pct(obj, max_width);
|
||||
int32_t max_w = max_width - indent; /* first line need minus indent */
|
||||
|
||||
@@ -1042,7 +1042,7 @@ static lv_result_t get_pressed_cell(lv_obj_t * obj, uint32_t * row, uint32_t * c
|
||||
}
|
||||
|
||||
if(row) {
|
||||
int32_t y = p.y + lv_obj_get_scroll_y(obj);;
|
||||
int32_t y = p.y + lv_obj_get_scroll_y(obj);
|
||||
y -= obj->coords.y1;
|
||||
y -= lv_obj_get_style_pad_top(obj, LV_PART_MAIN);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user