diff options
author | Benjamin Berg <bberg@redhat.com> | 2019-06-03 14:48:12 +0200 |
---|---|---|
committer | Benjamin Berg <bberg@redhat.com> | 2019-06-03 14:54:09 +0200 |
commit | 9ed3a427e765fb30ec540c6df5057cb2958bc7a0 (patch) | |
tree | e0d268ba0968773506eab639ab02b50ba8656e53 | |
parent | 00f7347a63c9aa1a1c6a1f6d74d6cb04f4beb5a6 (diff) | |
download | gnome-settings-daemon-benzea/blackbody-color-stable.tar.gz |
color: Always use old blackbody calculationbenzea/blackbody-color-stable
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.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/color/gsd-color-state.c b/plugins/color/gsd-color-state.c index f46d8cef..f30b69d0 100644 --- a/plugins/color/gsd-color-state.c +++ b/plugins/color/gsd-color-state.c @@ -415,7 +415,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 { @@ -566,7 +566,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 { |