From 75d497bcc8552ad324a2abb31d1a6bbaa64b1007 Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Thu, 13 Sep 2018 10:42:12 -0700 Subject: [PATCH] More explicit init in Group --- shared-module/displayio/Group.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shared-module/displayio/Group.c b/shared-module/displayio/Group.c index 52b89b5ae2..655376da0a 100644 --- a/shared-module/displayio/Group.c +++ b/shared-module/displayio/Group.c @@ -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) { self->x = 0; - self->y = 1; + self->y = 0; self->children = child_array; 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) {