Merge pull request #4322 from dhalbert/group-list-member-fix

use self->members in displayio_group_set()
This commit is contained in:
Dan Halbert 2021-03-03 18:55:51 -05:00 committed by GitHub
commit b71f3e1385
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -340,7 +340,7 @@ mp_obj_t common_hal_displayio_group_get(displayio_group_t* self, size_t index) {
void common_hal_displayio_group_set(displayio_group_t* self, size_t index, mp_obj_t layer) {
_add_layer(self, layer);
_remove_layer(self, index);
mp_obj_list_store(self, MP_OBJ_NEW_SMALL_INT(index), layer);
mp_obj_list_store(self->members, MP_OBJ_NEW_SMALL_INT(index), layer);
}
void displayio_group_construct(displayio_group_t* self, mp_obj_list_t* members, uint32_t scale, mp_int_t x, mp_int_t y) {