mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-28 07:03:00 +08:00
minor fixes
This commit is contained in:
parent
8b5837cc44
commit
4ad256f00e
@ -533,23 +533,15 @@ static void lv_refr_obj(lv_obj_t * obj, const lv_area_t * mask_ori_p)
|
||||
|
||||
#if MASK_AREA_DEBUG
|
||||
static lv_color_t debug_color = LV_COLOR_RED;
|
||||
<<<<<<< HEAD
|
||||
lv_draw_rect_dsc_t draw_dsc;
|
||||
lv_draw_rect_dsc_init(&draw_dsc);
|
||||
draw_dsc.bg_color.full = debug_color.full;
|
||||
draw_dsc.bg_opa = LV_OPA_50;
|
||||
draw_dsc.bg_opa = LV_OPA_20;
|
||||
draw_dsc.border_width = 2;
|
||||
draw_dsc.border_opa = LV_OPA_50;
|
||||
draw_dsc.border_color.full = (debug_color.full + 0x13) * 9;
|
||||
|
||||
lv_draw_rect(&obj_ext_mask, &obj_ext_mask, &draw_dsc);
|
||||
=======
|
||||
LV_STYLE_CREATE(style_debug, &lv_style_plain);
|
||||
style_debug.body.main_color = debug_color;
|
||||
style_debug.body.grad_color = debug_color;
|
||||
style_debug.body.border.width = 2;
|
||||
style_debug.body.border.color.full = (debug_color.full + 0x13) * 9;
|
||||
lv_draw_rect(&obj_ext_mask, &obj_ext_mask, &style_debug, LV_OPA_20);
|
||||
>>>>>>> dev-7.0
|
||||
debug_color.full *= 17;
|
||||
debug_color.full += 0xA1;
|
||||
#if LV_COLOR_DEPTH == 32
|
||||
|
@ -361,7 +361,7 @@ static void inv_arc_area(lv_obj_t * arc, uint16_t start_angle, uint16_t end_angl
|
||||
lv_style_int_t w = lv_obj_get_style_line_width(arc, LV_ARC_PART_ARC);
|
||||
lv_style_int_t rounded = lv_obj_get_style_line_rounded(arc, LV_ARC_PART_ARC);
|
||||
lv_coord_t rin = rout - w;
|
||||
lv_coord_t extra_area = rounded ? w : 0;
|
||||
lv_coord_t extra_area = rounded ? w / 2 + 2 : 0;
|
||||
|
||||
lv_area_t inv_area;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user