Skip to content

Commit 6594937

Browse files
committed
Support rendering groups inside groups
1 parent 19db886 commit 6594937

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

shared-module/displayio/Group.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,10 @@ bool displayio_group_get_pixel(displayio_group_t *self, int16_t x, int16_t y, ui
7171
if (displayio_sprite_get_pixel(layer, x, y, pixel)) {
7272
return true;
7373
}
74+
} else if (MP_OBJ_IS_TYPE(layer, &displayio_group_type)) {
75+
if (displayio_group_get_pixel(layer, x, y, pixel)) {
76+
return true;
77+
}
7478
}
7579
// TODO: Tiled layer
7680
}

0 commit comments

Comments
 (0)