From fa8ef7166839a7435e0017683f3e3c7f7904b285 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Thu, 14 Sep 2006 18:33:00 -0400 Subject: [PATCH] Don't translate monitor gamma to X gamma. The X gamma is used to set the output ramp of the card. Setting a 2.2 output gamma going into a 2.2 monitor gives an effective gamma of 4.84, which is very much not what you want. --- hw/xfree86/ddc/ddcProperty.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/hw/xfree86/ddc/ddcProperty.c b/hw/xfree86/ddc/ddcProperty.c index ed7fb167a..a4f4f4ece 100644 --- a/hw/xfree86/ddc/ddcProperty.c +++ b/hw/xfree86/ddc/ddcProperty.c @@ -303,12 +303,6 @@ xf86DDCMonitorSet(int scrnIndex, MonPtr Monitor, xf86MonPtr DDC) Monitor->DDC = DDC; - if (DDC->features.gamma > 0.0) { - Monitor->gamma.red = DDC->features.gamma; - Monitor->gamma.green = DDC->features.gamma; - Monitor->gamma.blue = DDC->features.gamma; - } - Monitor->widthmm = 10 * DDC->features.hsize; Monitor->heightmm = 10 * DDC->features.vsize;