dm_get_size is back, move style isolation to lv_obj_create from obj_x
This commit is contained in:
@@ -79,13 +79,8 @@ lv_obj_t * lv_led_create(lv_obj_t * par, lv_obj_t * copy)
|
||||
lv_led_ext_t * copy_ext = lv_obj_get_ext(copy);
|
||||
ext->bright = copy_ext->bright;
|
||||
|
||||
/*Set the style of 'copy' and isolate it if it is necessary*/
|
||||
if(lv_obj_get_style_iso(new_led) == false) {
|
||||
lv_obj_set_style(new_led, lv_obj_get_style(copy));
|
||||
} else {
|
||||
lv_obj_set_style(new_led, lv_obj_get_style(copy));
|
||||
lv_obj_iso_style(new_led, sizeof(lv_leds_t));
|
||||
}
|
||||
/*Refresh the style with new signal function*/
|
||||
lv_obj_refr_style(new_led);
|
||||
}
|
||||
|
||||
return new_led;
|
||||
|
||||
Reference in New Issue
Block a user