aboutsummaryrefslogtreecommitdiff
path: root/cms.c
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2014-09-01 21:28:43 +0000
committerDimitri Sokolyuk <demon@dim13.org>2014-09-01 21:28:43 +0000
commite8f71ccc53233fc666fecd050539296eddf3457e (patch)
treece5d1e212bcfe3910f89d868b8bc44a3b655fa0d /cms.c
parentc4569334db4919f607f99b26244c710da5bc0d5c (diff)
remove unused vars and adjust color values for hsv
Diffstat (limited to 'cms.c')
-rw-r--r--cms.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cms.c b/cms.c
index 56dfea5..d703e5c 100644
--- a/cms.c
+++ b/cms.c
@@ -32,7 +32,7 @@ hsv2rgb(unsigned short *r, unsigned short *g, unsigned short *b,
/* normalize */
h /= 360.0;
s /= 100.0;
- l /= 100.0;
+ v /= 100.0;
if (s == 0.0) {
*r = *g = *b = UINT16_MAX * v;
@@ -72,7 +72,7 @@ void
hsl2rgb(unsigned short *r, unsigned short *g, unsigned short *b,
double h, double s, double l)
{
- double v, F, M, mv, K, N;
+ double v, F, M, K, N;
int i;
/* normalize */