Skip to content

Commit 75d497b

Browse files
committed
More explicit init in Group
1 parent fb833b2 commit 75d497b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

shared-module/displayio/Group.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,10 @@ mp_obj_t common_hal_displayio_group_pop(displayio_group_t* self) {
5656

5757
void displayio_group_construct(displayio_group_t* self, mp_obj_t* child_array, uint32_t max_size) {
5858
self->x = 0;
59-
self->y = 1;
59+
self->y = 0;
6060
self->children = child_array;
6161
self->max_size = max_size;
62+
self->needs_refresh = false;
6263
}
6364

6465
bool displayio_group_get_pixel(displayio_group_t *self, int16_t x, int16_t y, uint16_t* pixel) {

0 commit comments

Comments
 (0)