Core/Color: Fix warning
Former-commit-id: 7c91c17d9d9c1133e206154320032d554a15c26b
This commit is contained in:
parent
1e0681ef2a
commit
f60f8fa6a4
|
|
@ -345,7 +345,7 @@ inline void NzColor::ToHSV(const NzColor& color, float* hue, float* saturation,
|
||||||
h = deltaB - deltaG;
|
h = deltaB - deltaG;
|
||||||
else if (NzNumberEquals(g, max))
|
else if (NzNumberEquals(g, max))
|
||||||
h = (1.f/3.f) + deltaR - deltaB;
|
h = (1.f/3.f) + deltaR - deltaB;
|
||||||
else if (NzNumberEquals(b, max))
|
else
|
||||||
h = (2.f/3.f) + deltaG - deltaR;
|
h = (2.f/3.f) + deltaG - deltaR;
|
||||||
|
|
||||||
if (h < 0.f)
|
if (h < 0.f)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue