diff options
author | rodri <rgl@antares-labs.eu> | 2023-08-25 21:53:17 +0000 |
---|---|---|
committer | rodri <rgl@antares-labs.eu> | 2023-08-25 21:53:17 +0000 |
commit | ca4af600fdad77b3c4603a62c81eee51187fafcf (patch) | |
tree | f0bfeb0cbefa5ee39726db70b6c7c4b6095d62e5 /fns.h | |
parent | 25e1b9489b9090b5d3372dd0dac09c1e7b3f10b3 (diff) | |
download | battleship-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.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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*); |