Commit 37cc9af6 authored by Benjamin Berg's avatar Benjamin Berg Committed by Benjamin Berg

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
parent b4793f93
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment