commit 54207efda666fa2029e7b8c8b1b686b4d39a11b0
Author: Mattias Andrée <maandree_AT_kth.se>
AuthorDate: Sat Jan 21 12:00:44 2017 +0100
Commit: Mattias Andrée <maandree_AT_kth.se>
CommitDate: Sat Jan 21 12:00:44 2017 +0100
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_AT_kth.se>
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
_AT_@ -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]);
Received on Sat Jan 21 2017 - 13:53:33 CET
This archive was generated by hypermail 2.3.0
: Sat Jan 21 2017 - 14:00:31 CET