Support rendering groups inside groups

This commit is contained in:
Scott Shawcroft 2019-01-10 17:22:08 -08:00
parent 19db886645
commit 6594937a65
No known key found for this signature in database
GPG Key ID: FD0EDC4B6C53CA59

View File

@ -71,6 +71,10 @@ bool displayio_group_get_pixel(displayio_group_t *self, int16_t x, int16_t y, ui
if (displayio_sprite_get_pixel(layer, x, y, pixel)) {
return true;
}
} else if (MP_OBJ_IS_TYPE(layer, &displayio_group_type)) {
if (displayio_group_get_pixel(layer, x, y, pixel)) {
return true;
}
}
// TODO: Tiled layer
}