From f3c5b82c8276feda3c9eec522e549062c1589484 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Wed, 26 Jul 2023 16:12:36 +0200 Subject: config: add tweak.bold-text-in-bright-amount By how much to increase the luminance when brightening bold fonts. This was previously hard-coded to a factor of 1.3, which is now the default value of the new config option. Closes #1434 --- hsl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'hsl.c') diff --git a/hsl.c b/hsl.c index 3ebe4beb..d5d00e67 100644 --- a/hsl.c +++ b/hsl.c @@ -83,7 +83,7 @@ hsl_to_rgb(int hue, int sat, int lum) b += m; return ( - (int)round(r * 255.) << 16 | - (int)round(g * 255.) << 8 | - (int)round(b * 255.) << 0); + (uint8_t)round(r * 255.) << 16 | + (uint8_t)round(g * 255.) << 8 | + (uint8_t)round(b * 255.) << 0); } -- cgit v1.3