summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoritz Luedecke <ritze@skweez.net>2017-08-20 14:15:52 +0200
committerMoritz Luedecke <ritze@skweez.net>2017-08-20 14:15:52 +0200
commitf2f7ec7608504df71d7760212759d8d498f629ea (patch)
tree66524bb20b63969b2e04b74e45cd8ae4c9e66cb9
parent53659c31e28654e2c16625150420fbbc5c7b0a52 (diff)
Format defines
-rw-r--r--pinentry-dmenu.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/pinentry-dmenu.c b/pinentry-dmenu.c
index a80f981..a761847 100644
--- a/pinentry-dmenu.c
+++ b/pinentry-dmenu.c
@@ -27,10 +27,11 @@
/* macros */
#define CONFIG "/.gnupg/pinentry-dmenu.conf"
-#define INTERSECT(x,y,w,h,r) (MAX(0, MIN((x)+(w),(r).x_org+(r).width) - MAX((x),(r).x_org)) \
- && MAX(0, MIN((y)+(h),(r).y_org+(r).height) - MAX((y),(r).y_org)))
-#define LENGTH(X) (sizeof X / sizeof X[0])
-#define TEXTW(X) (drw_fontset_getwidth(drw, (X)) + lrpad)
+#define INTERSECT(x, y, w, h, r) \
+ (MAX(0, MIN((x)+(w),(r).x_org+(r).width) - MAX((x),(r).x_org)) \
+ && MAX(0, MIN((y)+(h),(r).y_org+(r).height) - MAX((y),(r).y_org)))
+#define LENGTH(X) (sizeof X / sizeof X[0])
+#define TEXTW(X) (drw_fontset_getwidth(drw, (X)) + lrpad)
#define MINDESCLEN 8