1
0
Fork 0
mirror of https://github.com/davatorium/rofi.git synced 2024-11-18 13:54:36 -05:00

Initialize all fields in hsl_to_rgb conversion

This commit is contained in:
Dave Davenport 2017-06-13 10:41:58 +02:00
parent a3c1ff7d94
commit 6e5e21b66d

View file

@ -106,6 +106,7 @@ static double hue2rgb(double p, double q, double t){
static ThemeColor hsl_to_rgb ( double h, double s, double l )
{
ThemeColor colour;
colour.alpha = 1.0;
if(s < 0.001 && s > -0.001){
colour.red = colour.green = colour.blue = l; // achromatic