From ede5f6dc27a578d280d4f55b37066f2f4d1afaac Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 27 Mar 2014 11:20:58 +0100 Subject: add cie_temperature to textconf MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- examples/textconf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/textconf b/examples/textconf index 1390d92..9f9d778 100644 --- a/examples/textconf +++ b/examples/textconf @@ -270,7 +270,8 @@ def add_adjustments(adjsections, adjustments): backlight_value *= f new_adjustment = make_f(f, [[float(v)] for v in value], [1]) elif setting == 'temperature': - f = lambda x : temperature(x, lambda t : divide_by_maximum(cmf_10deg(t))) + f_ = cie_temperature if cie else temperature + f = lambda x : f_(x, lambda t : divide_by_maximum(cmf_10deg(t))) new_adjustment = make_f(f, [[float(v)] for v in value], [6500]) elif setting == 'contrast': f = cie_contrast if cie else rgb_contrast -- cgit v1.2.3-70-g09d2