blind

suckless command-line video editing utility
git clone git://git.suckless.org/blind
Log | Files | Refs | README | LICENSE

commit 54207efda666fa2029e7b8c8b1b686b4d39a11b0
parent 8d75367be7671fe59ac85ad2dfeb83b0cd8485a9
Author: Mattias Andrée <maandree@kth.se>
Date:   Sat, 21 Jan 2017 12:00:44 +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@kth.se>

Diffstat:
Msrc/blind-single-colour.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git 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]);