From 066c47c63f10df07fb31487e8cae325aec3ffa8e Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sat, 28 Mar 2026 22:42:27 +0200 Subject: fix: Make square require only size, not both width and height like a rectangle --- graphics.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'graphics.c') diff --git a/graphics.c b/graphics.c index 8fceb1e..72089fc 100644 --- a/graphics.c +++ b/graphics.c @@ -34,14 +34,14 @@ main() { .centerX = width / 2, .centerY = height / 2, }), Square_setup((Square){ - .width = 100, .height = 100, .color = 0xFFFFFF00, + .size = 100, .color = 0xFFFFFF00, }), NULL, TransformRotate_setup((TransformRotate){ .angle = M_PI / 8, }), Square_setup((Square){ - .width = 200, .height = 200, .color = 0xFF00FFFF, + .size = 200, .color = 0xFF00FFFF, }), NULL, TransformCenter_setup((TransformCenter){ -- cgit v1.2.3