aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2017-01-21 12:00:44 +0100
committerMattias Andrée <maandree@kth.se>2017-01-21 12:00:44 +0100
commit54207efda666fa2029e7b8c8b1b686b4d39a11b0 (patch)
treeaf16a319bf943ccf6102d241469dfb20dd8a04f7
parentAdd man pages (diff)
downloadblind-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 '')
-rw-r--r--src/blind-single-colour.c2
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]);