From 6182743cfb62d4330c97734c50a2de03694e06c0 Mon Sep 17 00:00:00 2001 From: Treeki Date: Sat, 29 Sep 2012 16:00:27 +0200 Subject: Fixed colourise algorithm --- src/koopatlas/hud.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) -- cgit v1.2.3