diff options
| author | Syndamia <kamen@syndamia.com> | 2026-03-28 22:42:27 +0200 |
|---|---|---|
| committer | Syndamia <kamen@syndamia.com> | 2026-03-28 22:42:27 +0200 |
| commit | 066c47c63f10df07fb31487e8cae325aec3ffa8e (patch) | |
| tree | dcfd8ba68d83dfafda3c2835452fc8de5c62da24 /graphics.c | |
| parent | 40f33359c7b47d99c3386948bbeead8409a1a902 (diff) | |
| download | ppm_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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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){ |
