# HG changeset patch # User Mike Becker # Date 1754405114 -7200 # Node ID d766b4f033d710aeb8edae283d04d61702f842dd # Parent 2522fbeccede1795e058343790736caba055ddde remove "bounds" creation argument for rectangles we will keep the asc_rectangle_set_bounds() function, though diff -r 2522fbeccede -r d766b4f033d7 src/2d.c --- a/src/2d.c Mon Aug 04 23:19:06 2025 +0200 +++ b/src/2d.c Tue Aug 05 16:45:14 2025 +0200 @@ -128,19 +128,10 @@ AscSceneNode *asc_rectangle_create(struct asc_rectangle_create_args args) { AscRectangle *rectangle = cxZallocDefault(sizeof(AscRectangle)); - float pos_x, pos_y; - if (args.bounds.size.width + args.bounds.size.height > 0) { - // TODO: this is probably bugged, because it does not respect the origin - pos_x = (float) args.bounds.pos.x; - pos_y = (float) args.bounds.pos.y; - rectangle->size.width = (float) args.bounds.size.width; - rectangle->size.height = (float) args.bounds.size.height; - } else { - pos_x = (float) args.x; - pos_y = (float) args.y; - rectangle->size.width = (float) args.width; - rectangle->size.height = (float) args.height; - } + float pos_x = (float) args.x; + float pos_y = (float) args.y; + rectangle->size.width = (float) args.width; + rectangle->size.height = (float) args.height; rectangle->radius = (float)args.radius; rectangle->filled = args.filled; diff -r 2522fbeccede -r d766b4f033d7 src/ascension/2d.h --- a/src/ascension/2d.h Mon Aug 04 23:19:06 2025 +0200 +++ b/src/ascension/2d.h Tue Aug 05 16:45:14 2025 +0200 @@ -43,7 +43,6 @@ } AscRectangle; struct asc_rectangle_create_args { - asc_rect bounds; int x; int y; int origin_x;