summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Berg <bberg@redhat.com>2019-06-03 14:48:12 +0200
committerBenjamin Berg <benjamin@sipsolutions.net>2019-07-30 08:37:12 +0000
commit37cc9af6d2e54ed7797fc178e16e294b59dfc10a (patch)
treef7d2b42b8aaeeb3f38312a46451bea1741b3f67a
parentb4793f936172b5b3a413a10c9f3cffdbfffe6762 (diff)
downloadgnome-settings-daemon-37cc9af6d2e54ed7797fc178e16e294b59dfc10a.tar.gz
color: Always use old blackbody calculation
We tried to switch to a better way of calculating the blackbody color, but unfortunately the switch was only partial and not used in most cases. Revert this to the old calculation for stable so that we can update the default values and configuration panel when moving to the better blackbody color calculation. Fixes #403
-rw-r--r--plugins/color/gsd-color-state.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/color/gsd-color-state.c b/plugins/color/gsd-color-state.c
index b744c44b..b4bf1807 100644
--- a/plugins/color/gsd-color-state.c
+++ b/plugins/color/gsd-color-state.c
@@ -411,7 +411,7 @@ gcm_session_generate_vcgt (CdProfile *profile, guint color_temperature, guint si
/* get the color temperature */
if (!cd_color_get_blackbody_rgb_full (color_temperature,
&temp,
- CD_COLOR_BLACKBODY_FLAG_USE_PLANCKIAN)) {
+ CD_COLOR_BLACKBODY_FLAG_NONE)) {
g_warning ("failed to get blackbody for %uK", color_temperature);
cd_color_rgb_set (&temp, 1.0, 1.0, 1.0);
} else {
@@ -562,7 +562,9 @@ gcm_session_device_reset_gamma (GnomeRROutput *output,
}
/* get the color temperature */
- if (!cd_color_get_blackbody_rgb (color_temperature, &temp)) {
+ if (!cd_color_get_blackbody_rgb_full (color_temperature,
+ &temp,
+ CD_COLOR_BLACKBODY_FLAG_NONE)) {
g_warning ("failed to get blackbody for %uK", color_temperature);
cd_color_rgb_set (&temp, 1.0, 1.0, 1.0);
} else {