Support rendering groups inside groups
This commit is contained in:
parent
19db886645
commit
6594937a65
@ -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)) {
|
if (displayio_sprite_get_pixel(layer, x, y, pixel)) {
|
||||||
return true;
|
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
|
// TODO: Tiled layer
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user