summaryrefslogtreecommitdiff
path: root/graphics.c
diff options
context:
space:
mode:
authorSyndamia <kamen@syndamia.com>2026-03-28 22:42:27 +0200
committerSyndamia <kamen@syndamia.com>2026-03-28 22:42:27 +0200
commit066c47c63f10df07fb31487e8cae325aec3ffa8e (patch)
treedcfd8ba68d83dfafda3c2835452fc8de5c62da24 /graphics.c
parent40f33359c7b47d99c3386948bbeead8409a1a902 (diff)
downloadppm_graphics-066c47c63f10df07fb31487e8cae325aec3ffa8e.tar
ppm_graphics-066c47c63f10df07fb31487e8cae325aec3ffa8e.tar.gz
ppm_graphics-066c47c63f10df07fb31487e8cae325aec3ffa8e.zip
fix: Make square require only size, not both width and height like a rectangle
Diffstat (limited to 'graphics.c')
-rw-r--r--graphics.c4
1 files changed, 2 insertions, 2 deletions
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){