diff options
| author | Mattias Andrée <maandree@kth.se> | 2017-05-03 20:20:12 +0200 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2017-05-03 20:20:12 +0200 |
| commit | 06b8e2576f952e8f8b097ee906f662d2ac38e2e8 (patch) | |
| tree | 35b0b9dc614f5f097ffb82e4c2d032958833fc3e /src/blind-single-colour.c | |
| parent | Fixes and improvements to stream.c (diff) | |
| download | blind-06b8e2576f952e8f8b097ee906f662d2ac38e2e8.tar.gz blind-06b8e2576f952e8f8b097ee906f662d2ac38e2e8.tar.bz2 blind-06b8e2576f952e8f8b097ee906f662d2ac38e2e8.tar.xz | |
Add constants D65_XYZ_X and D65_XYZ_Z
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src/blind-single-colour.c')
| -rw-r--r-- | src/blind-single-colour.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/blind-single-colour.c b/src/blind-single-colour.c index 955511a..2a6511d 100644 --- a/src/blind-single-colour.c +++ b/src/blind-single-colour.c @@ -47,11 +47,9 @@ main(int argc, char *argv[]) usage(); if (argc < 3) { - X = D65_XYY_X / D65_XYY_Y; - Z = 1 / D65_XYY_Y - 1 - X; Y = etolf_arg("the Y value", argv[0]); - X *= Y; - Z *= Y; + X = Y * D65_XYZ_X; + Z = Y * D65_XYZ_Z; } else { X = etolf_arg("the X value", argv[0]); Y = etolf_arg("the Y value", argv[1]); |
