[gnome-settings-daemon/benzea/blackbody-color-unstable: 2/3] color: Always use old blackbody calculation



commit 931fc6b6d3d15530c3926db894d8f30611d215f0
Author: Benjamin Berg <bberg redhat com>
Date:   Mon Jun 3 14:48:12 2019 +0200

    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

 plugins/color/gsd-color-state.c | 6 ++++--
 1 file 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 {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]