Merge pull request #599 from nsawa/fix_nk_colorf_hsva_f

Fix nk_colorf_hsva_f alpha calculation
This commit is contained in:
Micha Mettke 2018-01-05 23:29:22 -08:00 committed by GitHub
commit 9cb143e13f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -6176,7 +6176,7 @@ nk_colorf_hsva_f(float *out_h, float *out_s,
*out_h = NK_ABS(K + (in.g - in.b)/(6.0f * chroma + 1e-20f));
*out_s = chroma / (in.r + 1e-20f);
*out_v = in.r;
*out_a = (float)in.a / 255.0f;
*out_a = in.a;
}