aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2014-09-02 19:02:44 +0000
committerDimitri Sokolyuk <demon@dim13.org>2014-09-02 19:02:44 +0000
commit74874ae0b4aef88763042d2723cbf98609040907 (patch)
tree097936dc70eeed1dc95f22685dc12edfa1414a98
parent4970ac59f389ff8a02aa2ee7e04d6463e5ab25e6 (diff)
indent
-rw-r--r--cms.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cms.c b/cms.c
index d640574..741ba99 100644
--- a/cms.c
+++ b/cms.c
@@ -37,6 +37,7 @@ hsv2rgb(unsigned short *r, unsigned short *g, unsigned short *b,
if (s > 0.0) {
if (h >= 1.0)
h -= 1.0;
+
h *= 6.0;
i = (int)h;
F = h - i;
@@ -85,6 +86,7 @@ hsl2rgb(unsigned short *r, unsigned short *g, unsigned short *b,
if (v > 0.0) {
if (h >= 1.0)
h -= 1.0;
+
h *= 6.0;
i = (int)h;
F = h - i;