diff options
| author | Scott Shawcroft <scott@tannewt.org> | 2018-09-13 10:42:12 -0700 |
|---|---|---|
| committer | Scott Shawcroft <scott@tannewt.org> | 2018-09-13 10:42:12 -0700 |
| commit | 75d497bcc8552ad324a2abb31d1a6bbaa64b1007 (patch) | |
| tree | a6fe26ae7aeb92e3d59be3f6bb14789f918d2378 /shared-module/displayio/Group.c | |
| parent | fb833b25d504d610269481b1bcf7375c6ca24873 (diff) | |
More explicit init in Group
Diffstat (limited to 'shared-module/displayio/Group.c')
| -rw-r--r-- | shared-module/displayio/Group.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/shared-module/displayio/Group.c b/shared-module/displayio/Group.c index 52b89b5ae..655376da0 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) { |
