[gnome-desktop] Correct the transposed bits of the red chromacity in the EDID parser
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-desktop] Correct the transposed bits of the red chromacity in the EDID parser
- Date: Thu, 12 Sep 2013 08:15:08 +0000 (UTC)
commit 5d7c6dc599355e33e81f3bf4fc08523d67a7fbbf
Author: Richard Hughes <richard hughsie com>
Date: Thu Sep 12 09:14:22 2013 +0100
Correct the transposed bits of the red chromacity 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.
libgnome-desktop/edid-parse.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libgnome-desktop/edid-parse.c b/libgnome-desktop/edid-parse.c
index 0f4f100..cdc9d01 100644
--- a/libgnome-desktop/edid-parse.c
+++ b/libgnome-desktop/edid-parse.c
@@ -253,7 +253,7 @@ static int
decode_color_characteristics (const uchar *edid, MonitorInfo *info)
{
info->red_x = decode_fraction (edid[0x1b], get_bits (edid[0x19], 6, 7));
- info->red_y = decode_fraction (edid[0x1c], get_bits (edid[0x19], 5, 4));
+ info->red_y = decode_fraction (edid[0x1c], get_bits (edid[0x19], 4, 5));
info->green_x = decode_fraction (edid[0x1d], get_bits (edid[0x19], 2, 3));
info->green_y = decode_fraction (edid[0x1e], get_bits (edid[0x19], 0, 1));
info->blue_x = decode_fraction (edid[0x1f], get_bits (edid[0x1a], 6, 7));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]