aboutsummaryrefslogtreecommitdiff
path: root/rect.c
diff options
context:
space:
mode:
Diffstat (limited to 'rect.c')
-rw-r--r--rect.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/rect.c b/rect.c
new file mode 100644
index 0000000..ec755e2
--- /dev/null
+++ b/rect.c
@@ -0,0 +1,10 @@
+#include "rect.h"
+
+Rectangle make_rect(int x, int y, int w, int h) {
+ Rectangle r;
+ r.x = x;
+ r.y = y;
+ r.w = w;
+ r.h = h;
+ return r;
+}