aboutsummaryrefslogtreecommitdiff
path: root/fns.h
diff options
context:
space:
mode:
authorrodri <rgl@antares-labs.eu>2023-08-25 21:53:17 +0000
committerrodri <rgl@antares-labs.eu>2023-08-25 21:53:17 +0000
commitca4af600fdad77b3c4603a62c81eee51187fafcf (patch)
treef0bfeb0cbefa5ee39726db70b6c7c4b6095d62e5 /fns.h
parent25e1b9489b9090b5d3372dd0dac09c1e7b3f10b3 (diff)
downloadbattleship-ca4af600fdad77b3c4603a62c81eee51187fafcf.tar.gz
battleship-ca4af600fdad77b3c4603a62c81eee51187fafcf.tar.bz2
battleship-ca4af600fdad77b3c4603a62c81eee51187fafcf.zip
implemented most of the layout code.
added a new util.c to host the cell/coordinate conversions. made the showproc a painter thread instead, to avoid problems with menuhit(2).
Diffstat (limited to 'fns.h')
-rw-r--r--fns.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/fns.h b/fns.h
index 67a4756..ab3d3d7 100644
--- a/fns.h
+++ b/fns.h
@@ -6,3 +6,9 @@
void *emalloc(ulong);
void *erealloc(void*, ulong);
Image *eallocimage(Display*, Rectangle, ulong, int, ulong);
+
+/*
+ * util
+ */
+char *cell2coords(Point2);
+Point2 coords2cell(char*);