From 44c7de3dcf49ee568863f55610f40c7a05b4dfe7 Mon Sep 17 00:00:00 2001 From: Markus Teich Date: Sat, 21 May 2016 21:51:14 +0200 Subject: import new drw from libsl and minor fixes. - extract drawitem function (code deduplication) - fix bug where inputw was not correctly calculated from the widest item, but just from the one with the longest strlen() which is not the same. It's better now, but does not account for fallback fonts, since it would be too slow to calculate all the correct item widths on startup. - minor code style fixes (indentation, useless line breaks) --- util.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'util.h') diff --git a/util.h b/util.h index cded043..f633b51 100644 --- a/util.h +++ b/util.h @@ -4,5 +4,5 @@ #define MIN(A, B) ((A) < (B) ? (A) : (B)) #define BETWEEN(X, A, B) ((A) <= (X) && (X) <= (B)) -void die(const char *errstr, ...); -void *ecalloc(size_t, size_t); +void die(const char *fmt, ...); +void *ecalloc(size_t nmemb, size_t size); -- cgit v1.2.3