[gnome-settings-daemon] color: Correct the transposed bits in the EDID parser



commit d948c8caf3dee1652e8ed05016a1b306dfa0fdf7
Author: Richard Hughes <richard hughsie com>
Date:   Thu Sep 12 09:36:14 2013 +0100

    color: Correct the transposed bits in the EDID parser
    
    This was noticed by Florian Höch, and isn't a huge problem as the value was only
    different by 1dE as it's the lowest 2 bits of a 10-bit word that is affected.

 plugins/color/gcm-edid.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/color/gcm-edid.c b/plugins/color/gcm-edid.c
index 4f03aa8..2599d6c 100644
--- a/plugins/color/gcm-edid.c
+++ b/plugins/color/gcm-edid.c
@@ -341,7 +341,7 @@ gcm_edid_parse (GcmEdid *edid, const guint8 *data, gsize length, GError **error)
 
         /* get color red */
         priv->red->x = gcm_edid_decode_fraction (data[0x1b], gcm_edid_get_bits (data[0x19], 6, 7));
-        priv->red->y = gcm_edid_decode_fraction (data[0x1c], gcm_edid_get_bits (data[0x19], 5, 4));
+        priv->red->y = gcm_edid_decode_fraction (data[0x1c], gcm_edid_get_bits (data[0x19], 4, 5));
 
         /* get color green */
         priv->green->x = gcm_edid_decode_fraction (data[0x1d], gcm_edid_get_bits (data[0x19], 2, 3));


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