Format defines
This commit is contained in:
parent
53659c31e2
commit
f2f7ec7608
1 changed files with 5 additions and 4 deletions
|
@ -27,10 +27,11 @@
|
||||||
|
|
||||||
/* macros */
|
/* macros */
|
||||||
#define CONFIG "/.gnupg/pinentry-dmenu.conf"
|
#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)) \
|
#define INTERSECT(x, y, w, h, r) \
|
||||||
&& MAX(0, MIN((y)+(h),(r).y_org+(r).height) - MAX((y),(r).y_org)))
|
(MAX(0, MIN((x)+(w),(r).x_org+(r).width) - MAX((x),(r).x_org)) \
|
||||||
#define LENGTH(X) (sizeof X / sizeof X[0])
|
&& MAX(0, MIN((y)+(h),(r).y_org+(r).height) - MAX((y),(r).y_org)))
|
||||||
#define TEXTW(X) (drw_fontset_getwidth(drw, (X)) + lrpad)
|
#define LENGTH(X) (sizeof X / sizeof X[0])
|
||||||
|
#define TEXTW(X) (drw_fontset_getwidth(drw, (X)) + lrpad)
|
||||||
#define MINDESCLEN 8
|
#define MINDESCLEN 8
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue