From 54207efda666fa2029e7b8c8b1b686b4d39a11b0 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 21 Jan 2017 12:00:44 +0100 Subject: blind-single-colour: when only Y is specified, adjust X and Z so that the colour is always grey MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/blind-single-colour.c | 2 ++ 1 file changed, 2 insertions(+) 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]); -- cgit v1.2.3-70-g09d2