From 4b88174afbb8f2dcd5884c474883a0703ce5f411 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Sat, 21 Jan 2023 16:15:14 +0100 Subject: Added fixed precision float for shader from github --- src/color.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/color.c b/src/color.c index 40d43d5..5208766 100644 --- a/src/color.c +++ b/src/color.c @@ -1,8 +1,8 @@ #include "mandel.h" #include "config.h" -#define MAX(x, y) (x > y ? x : y) -#define MIN(x, y) (x < y ? x : y) +#define MAX(x, y) ((x) > (y) ? (x) : (y)) +#define MIN(x, y) ((x) < (y) ? (x) : (y)) static Color color_hsl_to_rgb(ColorHSL color_hsl); static Color *st_hsl_rainbow(int count); -- cgit