diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-03-27 11:20:58 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-03-27 11:20:58 +0100 |
commit | ede5f6dc27a578d280d4f55b37066f2f4d1afaac (patch) | |
tree | 167abc3cb3ca7a039da74b6358b8f4eef2de8c57 /examples | |
parent | m info (diff) | |
download | blueshift-ede5f6dc27a578d280d4f55b37066f2f4d1afaac.tar.gz blueshift-ede5f6dc27a578d280d4f55b37066f2f4d1afaac.tar.bz2 blueshift-ede5f6dc27a578d280d4f55b37066f2f4d1afaac.tar.xz |
add cie_temperature to textconf
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/textconf | 3 |
1 files changed, 2 insertions, 1 deletions
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 |