diff options
Diffstat (limited to 'src/colour.c')
-rw-r--r-- | src/colour.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/colour.c b/src/colour.c index 0138980..88acf64 100644 --- a/src/colour.c +++ b/src/colour.c @@ -1,4 +1,5 @@ -/* redshift-ng - Automatically adjust display colour temperature according the Sun +/*- + * redshift-ng - Automatically adjust display colour temperature according the Sun * * Copyright (c) 2009-2018 Jon Lund Steffensen <jonlst@gmail.com> * Copyright (c) 2014-2016, 2025 Mattias Andrée <m@maandree.se> @@ -43,11 +44,6 @@ colour_setting_diff_is_major(const struct colour_setting *a, const struct colour } -#if defined(__GNUC__) -# pragma GCC diagnostic ignored "-Wfloat-equal" -#endif - - #define X(SUFFIX, TYPE, MAX, DEPTH)\ /** * Fill a gamma ramp @@ -65,7 +61,7 @@ colour_setting_diff_is_major(const struct colour_setting *a, const struct colour size_t i;\ double v;\ brightness /= (size - 1U);\ - if (gamma == 1.0) {\ + if (exact_eq(gamma, 1.0)) {\ brightness *= (MAX);\ for (i = 0; i < size; i++)\ ramp[i] = (TYPE)(i * brightness);\ |