aboutsummaryrefslogtreecommitdiff
path: root/src/position.c
diff options
context:
space:
mode:
authorHampus <hampus@hampusmat.com>2022-01-04 18:55:51 +0100
committerHampus <hampus@hampusmat.com>2022-01-05 20:09:27 +0100
commite3690eb85a9456cc1f3ccda751ae7d9fdf2d3b03 (patch)
tree2fdd32726d753495bf562102a0531101eaa1ddfd /src/position.c
parent1bed3ac57906b26ef05b25c2bc5c1dca424dba4a (diff)
refactor: improve even more
Diffstat (limited to 'src/position.c')
-rw-r--r--src/position.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/position.c b/src/position.c
new file mode 100644
index 0000000..937edd5
--- /dev/null
+++ b/src/position.c
@@ -0,0 +1,9 @@
+#include "position.h"
+
+Position position_create(unsigned int x, unsigned int y)
+{
+ Position pos = {.x = x, .y = y};
+
+ return pos;
+}
+