diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2015-05-04 21:54:46 +0200 |
---|---|---|
committer | Anselm R Garbe <garbeam@gmail.com> | 2015-06-27 21:47:10 +0200 |
commit | 4b1fecd44e8376594c418663351fcb30c4e841de (patch) | |
tree | 78db12fd7024bff8afb3c3bd8851c009837f5a34 /util.h | |
parent | 13a529ce63364544bdc851dfd5d3aa2ef8740914 (diff) | |
download | dmenu-4b1fecd44e8376594c418663351fcb30c4e841de.tar.gz dmenu-4b1fecd44e8376594c418663351fcb30c4e841de.tar.bz2 dmenu-4b1fecd44e8376594c418663351fcb30c4e841de.zip |
Use libdraw: add Xft and fallback-fonts support to graphics lib
- libdraw, util: add drw.{c,h}, util.{c,h} and update code.
- libdraw: fix drw_rect(): use w and h parameter.
- libdraw: print errstr if last character in string was ":" (sbase).
- libdraw: drw_clr_free() allow valid free(NULL).
- config.def.h: set default font to monospace.
- cleanup() on exit.
- LICENSE: update license string for dmenu -v to 2015.
- LICENSE: add myself to LICENSE
Diffstat (limited to 'util.h')
-rw-r--r-- | util.h | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -0,0 +1,7 @@ +/* See LICENSE file for copyright and license details. */ + +#define MAX(A, B) ((A) > (B) ? (A) : (B)) +#define MIN(A, B) ((A) < (B) ? (A) : (B)) +#define BETWEEN(X, A, B) ((A) <= (X) && (X) <= (B)) + +void die(const char *errstr, ...); |