summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMartin-Éric Racine <q-funk@iki.fi>2008-02-10 01:50:26 +0200
committerMartin-Éric Racine <q-funk@iki.fi>2008-02-10 01:50:26 +0200
commitae448a3beafe001c2bbc60f9fa09ebcfb00e828f (patch)
tree0ae73d0b8cf7d4f6728dfe4c1b99ffdd516f8857 /src
parent4670abb6036379245995f000dcb7d3e33f39570f (diff)
Added trivial fix for Gamma initialization.
Diffstat (limited to 'src')
-rw-r--r--src/amd_gx_driver.c12
-rw-r--r--src/amd_lx_driver.c12
2 files changed, 24 insertions, 0 deletions
diff --git a/src/amd_gx_driver.c b/src/amd_gx_driver.c
index 177b111..49678f3 100644
--- a/src/amd_gx_driver.c
+++ b/src/amd_gx_driver.c
@@ -467,6 +467,18 @@ GXPreInit(ScrnInfoPtr pScrni, int flags)
if (!xf86SetDefaultVisual(pScrni, -1))
return FALSE;
+ /*
+ * If the driver can do gamma correction, it should call xf86SetGamma()
+ * here.
+ */
+ {
+ Gamma zeros = { 0.0, 0.0, 0.0 };
+
+ if (!xf86SetGamma(pScrn, zeros)) {
+ return FALSE;
+ }
+ }
+
pScrni->progClock = TRUE;
xf86CollectOptions(pScrni, NULL);
xf86ProcessOptions(pScrni->scrnIndex, pScrni->options, GeodeOptions);
diff --git a/src/amd_lx_driver.c b/src/amd_lx_driver.c
index 9abbd5f..34f220a 100644
--- a/src/amd_lx_driver.c
+++ b/src/amd_lx_driver.c
@@ -551,6 +551,18 @@ LXPreInit(ScrnInfoPtr pScrni, int flags)
if (!xf86SetDefaultVisual(pScrni, -1))
return FALSE;
+ /*
+ * If the driver can do gamma correction, it should call xf86SetGamma()
+ * here.
+ */
+ {
+ Gamma zeros = { 0.0, 0.0, 0.0 };
+
+ if (!xf86SetGamma(pScrn, zeros)) {
+ return FALSE;
+ }
+ }
+
pScrni->progClock = TRUE;
xf86CollectOptions(pScrni, NULL);
xf86ProcessOptions(pScrni->scrnIndex, pScrni->options, GeodeOptions);