More explicit init in Group

This commit is contained in:
Scott Shawcroft 2018-09-13 10:42:12 -07:00
parent fb833b25d5
commit 75d497bcc8
No known key found for this signature in database
GPG Key ID: FD0EDC4B6C53CA59

View File

@ -56,9 +56,10 @@ mp_obj_t common_hal_displayio_group_pop(displayio_group_t* self) {
void displayio_group_construct(displayio_group_t* self, mp_obj_t* child_array, uint32_t max_size) { void displayio_group_construct(displayio_group_t* self, mp_obj_t* child_array, uint32_t max_size) {
self->x = 0; self->x = 0;
self->y = 1; self->y = 0;
self->children = child_array; self->children = child_array;
self->max_size = max_size; self->max_size = max_size;
self->needs_refresh = false;
} }
bool displayio_group_get_pixel(displayio_group_t *self, int16_t x, int16_t y, uint16_t* pixel) { bool displayio_group_get_pixel(displayio_group_t *self, int16_t x, int16_t y, uint16_t* pixel) {