[gnome-settings-daemon] color: Use a Planckian locus below 5000K



commit dab39dfd33289d2bd34a991c8e17aa0cf22f7c4a
Author: Richard Hughes <richard hughsie com>
Date:   Thu Feb 9 12:37:45 2017 +0000

    color: Use a Planckian locus below 5000K
    
    Although this doesn't make much difference for 4000K, lower temperatures look
    much better when shifting away from D65.

 plugins/color/gsd-color-state.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/plugins/color/gsd-color-state.c b/plugins/color/gsd-color-state.c
index 171c53a..6629d15 100644
--- a/plugins/color/gsd-color-state.c
+++ b/plugins/color/gsd-color-state.c
@@ -413,7 +413,13 @@ gcm_session_generate_vcgt (CdProfile *profile, guint color_temperature, guint si
         }
 
         /* get the color temperature */
+#if CD_CHECK_VERSION(1,3,5)
+        if (!cd_color_get_blackbody_rgb_full (color_temperature,
+                                              &temp,
+                                              CD_COLOR_BLACKBODY_FLAG_USE_PLANCKIAN)) {
+#else
         if (!cd_color_get_blackbody_rgb (color_temperature, &temp)) {
+#endif
                 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]