From caa24987c48bcdae57d08f70b0c5ee9089c13e54 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 18 Jul 2019 01:23:54 -0400 Subject: src/font.c: Reduce spacing in macro definitions --- diff --git a/src/font.c b/src/font.c index 3958891..92988a3 100644 --- a/src/font.c +++ b/src/font.c @@ -29,12 +29,12 @@ #include #include "image.h" -#define BIT_TO_BYTE(i) ((i) / CHAR_BIT) -#define BITS_TO_BYTES(i) BIT_TO_BYTE((i) + CHAR_BIT - 1) -#define BIT_BYTE_SHIFT(i) (CHAR_BIT - 1 - ((i) % CHAR_BIT)) -#define FONT_H(f) ((size_t) (f)->desc.height) -#define FONT_W(f) ((size_t) (f)->desc.width) -#define FONT_W_BYTES(f) BITS_TO_BYTES(FONT_W(f)) +#define BIT_TO_BYTE(i) ((i) / CHAR_BIT) +#define BITS_TO_BYTES(i) BIT_TO_BYTE((i) + CHAR_BIT - 1) +#define BIT_BYTE_SHIFT(i) (CHAR_BIT - 1 - ((i) % CHAR_BIT)) +#define FONT_H(f) ((size_t) (f)->desc.height) +#define FONT_W(f) ((size_t) (f)->desc.width) +#define FONT_W_BYTES(f) BITS_TO_BYTES(FONT_W(f)) struct font { const struct font_desc desc; -- cgit v0.9.1