# HG changeset patch # User Mike Becker # Date 1754405284 -7200 # Node ID 2e2d4c3bf1cdb7816ce586178aa7dfec68f7f768 # Parent d766b4f033d710aeb8edae283d04d61702f842dd fix that the origin was not applied in asc_rectangle_set_bounds() diff -r d766b4f033d7 -r 2e2d4c3bf1cd src/2d.c --- 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;