diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2023-07-26 14:12:36 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2023-07-28 13:40:07 +0000 |
| commit | f3c5b82c8276feda3c9eec522e549062c1589484 (patch) | |
| tree | c89b6e101aa72ab97865cff122b0a9935a52d6b9 /hsl.c | |
| parent | render: revert part of a36f67cbe311bebd9321fbf58773dace8128fcd7 (diff) | |
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
Diffstat (limited to 'hsl.c')
| -rw-r--r-- | hsl.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); } |
