diff --git a/lv_objx/lv_label.h b/lv_objx/lv_label.h index 45f15acee..651559e47 100644 --- a/lv_objx/lv_label.h +++ b/lv_objx/lv_label.h @@ -27,7 +27,6 @@ typedef struct { font_types_t font; color_t color; - color_t bg_color; uint16_t letter_space; uint16_t line_space; uint8_t mid :1; diff --git a/lv_objx/lv_rect.c b/lv_objx/lv_rect.c index 3e116c6d3..36628e5ad 100644 --- a/lv_objx/lv_rect.c +++ b/lv_objx/lv_rect.c @@ -67,15 +67,11 @@ lv_obj_t* lv_rect_create(lv_obj_t* par_dp, lv_obj_t * copy_dp) lv_obj_set_design_f(new_obj_dp, lv_rect_design); lv_obj_set_signal_f(new_obj_dp, lv_rect_signal); - + /*Init the new rectangle*/ if(copy_dp == NULL) { lv_obj_set_style(new_obj_dp, &lv_rects_def); } - /*Copy 'copy_dp' if it is not NULL*/ - else { - lv_obj_set_style(new_obj_dp, lv_obj_get_style(copy_dp)); - } return new_obj_dp; }