diff options
| author | Mattias Andrée <maandree@kth.se> | 2017-01-21 12:00:44 +0100 |
|---|---|---|
| committer | Mattias Andrée <maandree@kth.se> | 2017-01-21 12:00:44 +0100 |
| commit | 54207efda666fa2029e7b8c8b1b686b4d39a11b0 (patch) | |
| tree | af16a319bf943ccf6102d241469dfb20dd8a04f7 /src | |
| parent | Add man pages (diff) | |
| download | blind-54207efda666fa2029e7b8c8b1b686b4d39a11b0.tar.gz blind-54207efda666fa2029e7b8c8b1b686b4d39a11b0.tar.bz2 blind-54207efda666fa2029e7b8c8b1b686b4d39a11b0.tar.xz | |
blind-single-colour: when only Y is specified, adjust X and Z so that the colour is always grey
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src')
| -rw-r--r-- | src/blind-single-colour.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/blind-single-colour.c b/src/blind-single-colour.c index 4046f3e..2784f97 100644 --- a/src/blind-single-colour.c +++ b/src/blind-single-colour.c @@ -50,6 +50,8 @@ main(int argc, char *argv[]) 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; } else { X = etolf_arg("the X value", argv[0]); Y = etolf_arg("the Y value", argv[1]); |
