From 1cc131227cb1c1ddc9620ef1e62bfe179c2bfcb6 Mon Sep 17 00:00:00 2001 From: Lior Halphon Date: Sat, 21 Jan 2023 01:25:51 +0200 Subject: [PATCH] Fix mathematical error in temperature_tint --- Core/display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/display.c b/Core/display.c index 30af98b..cdc86f6 100644 --- a/Core/display.c +++ b/Core/display.c @@ -236,7 +236,7 @@ static inline void temperature_tint(double temperature, double *r, double *g, do *b = 0; } else { - *b = sqrt(0.75 - temperature); + *b = sqrt(0.75 - temperature) / sqrt(0.75); } } else {