~ruther/dwl

7803022d331c87a4d0ec827af3735c0f8b206676 — Devin J. Pohly 4 years ago 128c292
simplify ROUND macro
1 files changed, 1 insertions(+), 1 deletions(-)

M dwl.c
M dwl.c => dwl.c +1 -1
@@ 53,7 53,7 @@
#define LENGTH(X)               (sizeof X / sizeof X[0])
#define END(A)                  ((A) + LENGTH(A))
#define TAGMASK                 ((1 << LENGTH(tags)) - 1)
#define ROUND(X)                ((X)>=0?(long)((X)+0.5):(long)((X)-0.5))
#define ROUND(X)                ((int)((X)+0.5))
#ifdef XWAYLAND
#define WLR_SURFACE(C)          ((C)->type != XDGShell ? (C)->surface.xwayland->surface : (C)->surface.xdg->surface)
#else

Do not follow this link