use memcpy rather than structure assignment, since this might not be supported by all compilers

This commit is contained in:
manison
2019-02-18 08:24:51 +01:00
parent f9d8269274
commit 5dfac5a92b

View File

@@ -81,7 +81,7 @@ void lv_theme_set_current(lv_theme_t * th)
} }
/*Copy group style modification callback functions*/ /*Copy group style modification callback functions*/
current_theme.group = th->group; memcpy(&current_theme.group, &th->group, sizeof(th->group));
/*Let the object know their style might change*/ /*Let the object know their style might change*/
lv_obj_report_style_mod(NULL); lv_obj_report_style_mod(NULL);