summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2012-09-29 16:00:27 +0200
committerTreeki <treeki@gmail.com>2012-09-29 16:00:27 +0200
commit6182743cfb62d4330c97734c50a2de03694e06c0 (patch)
treed553922e98352494fa6ddf1cd4cfa3da98deef05
parent75b8e3f590a5588950bc733653d030c853397b1c (diff)
downloadkamek-6182743cfb62d4330c97734c50a2de03694e06c0.tar.gz
kamek-6182743cfb62d4330c97734c50a2de03694e06c0.zip
Fixed colourise algorithm
Diffstat (limited to '')
-rw-r--r--src/koopatlas/hud.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/koopatlas/hud.cpp b/src/koopatlas/hud.cpp
index 2401a04..b309e44 100644
--- a/src/koopatlas/hud.cpp
+++ b/src/koopatlas/hud.cpp
@@ -54,7 +54,7 @@ inline static float hslValue(float n1, float n2, float hue) {
hue += 6.0f;
if (hue < 1.0f)
- return n1 + (n1 - n1) * hue;
+ return n1 + (n2 - n1) * hue;
else if (hue < 3.0f)
return n2;
else if (hue < 4.0f)