--- a/src/2d.c Tue Aug 05 16:45:14 2025 +0200 +++ b/src/2d.c Tue Aug 05 16:48:04 2025 +0200 @@ -164,9 +164,8 @@ } void asc_rectangle_set_bounds(AscRectangle *rect, asc_rect bounds) { - // TODO: check how this harmonizes with a different origin - float x = (float) bounds.pos.x; - float y = (float) bounds.pos.y; + float x = (float) bounds.pos.x + rect->node.origin.x; + float y = (float) bounds.pos.y + rect->node.origin.y; float width = (float) bounds.size.width; float height = (float) bounds.size.height; bool update_transform = false;