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:
parent
a3c1ff7d94
commit
6e5e21b66d
1 changed files with 1 additions and 0 deletions
|
@ -106,6 +106,7 @@ static double hue2rgb(double p, double q, double t){
|
||||||
static ThemeColor hsl_to_rgb ( double h, double s, double l )
|
static ThemeColor hsl_to_rgb ( double h, double s, double l )
|
||||||
{
|
{
|
||||||
ThemeColor colour;
|
ThemeColor colour;
|
||||||
|
colour.alpha = 1.0;
|
||||||
|
|
||||||
if(s < 0.001 && s > -0.001){
|
if(s < 0.001 && s > -0.001){
|
||||||
colour.red = colour.green = colour.blue = l; // achromatic
|
colour.red = colour.green = colour.blue = l; // achromatic
|
||||||
|
|
Loading…
Reference in a new issue