use memcpy rather than structure assignment, since this might not be supported by all compilers
This commit is contained in:
@@ -81,7 +81,7 @@ void lv_theme_set_current(lv_theme_t * th)
|
||||
}
|
||||
|
||||
/*Copy group style modification callback functions*/
|
||||
current_theme.group = th->group;
|
||||
memcpy(¤t_theme.group, &th->group, sizeof(th->group));
|
||||
|
||||
/*Let the object know their style might change*/
|
||||
lv_obj_report_style_mod(NULL);
|
||||
|
||||
Reference in New Issue
Block a user