--- x.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/x.c b/x.c index cd96575..f012539 100644 --- a/x.c +++ b/x.c _AT_@ -69,9 +69,9 @@ static void ttysend(const Arg *); /* macros */ #define IS_SET(flag) ((win.mode & (flag)) != 0) -#define TRUERED(x) (((x) & 0xff0000) >> 8) -#define TRUEGREEN(x) (((x) & 0xff00)) -#define TRUEBLUE(x) (((x) & 0xff) << 8) +#define TRUERED(x) ((((x) & 0xff0000) >> 16) * 257) +#define TRUEGREEN(x) ((((x) & 0xff00) >> 8) * 257) +#define TRUEBLUE(x) ((((x) & 0xff)) * 257) typedef XftDraw *Draw; typedef XftColor Color; -- 2.35.0Received on Sun Mar 06 2022 - 14:07:41 CET
This archive was generated by hypermail 2.3.0 : Sun Mar 06 2022 - 14:12:36 CET