summaryrefslogtreecommitdiffstats
path: root/examples/textconf
diff options
context:
space:
mode:
Diffstat (limited to 'examples/textconf')
-rw-r--r--examples/textconf3
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