diff -r 0009b982bc7d -r e5544920377e src/2d.c --- a/src/2d.c Wed Jul 02 23:21:17 2025 +0200 +++ b/src/2d.c Wed Jul 02 23:55:50 2025 +0200 @@ -179,7 +179,7 @@ } else { rectangle->thickness = args.thickness; } - if (!args.filled && asc_col4_test_zero(args.border_color)) { + if (!args.filled && asc_memcmpz(&args.border_color, sizeof(args.border_color))) { // convenience fallback: // when we are drawing an outline but have no explicit border color, // use the active ink @@ -188,7 +188,7 @@ AscSceneNode *node = &rectangle->node; node->position.z = ASC_SCENE_2D_DEPTH_OFFSET; - node->scale = asc_vec3f_one; + node->scale = ASC_VEC3F_1; node->render_group = asc_context.ink.alpha < 255 ? ASC_RENDER_GROUP_2D_BLEND : ASC_RENDER_GROUP_2D_OPAQUE; @@ -333,7 +333,7 @@ } else { ellipsis->thickness = args.thickness; } - if (!args.filled && asc_col4_test_zero(args.border_color)) { + if (!args.filled && asc_memcmpz(&args.border_color, sizeof(args.border_color))) { // convenience fallback: // when we are drawing an outline but have no explicit border color, // use the active ink @@ -342,7 +342,7 @@ AscSceneNode *node = &ellipsis->node; node->position.z = ASC_SCENE_2D_DEPTH_OFFSET; - node->scale = asc_vec3f_one; + node->scale = ASC_VEC3F_1; node->render_group = asc_context.ink.alpha < 255 ? ASC_RENDER_GROUP_2D_BLEND : ASC_RENDER_GROUP_2D_OPAQUE;