summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2009-12-15 16:42:15 -0500
committerAdam Jackson <ajax@redhat.com>2009-12-15 16:42:15 -0500
commit85638b2f0acc418aa77241dd123f7de76ea3ce8f (patch)
treebe1877c1b6c6a5118d20e9600800922cf4d75af7 /src
parentd3ba2a45ed21f60667716be0cdcb6a7888263ffd (diff)
g80: Add a no-op gamma hook so we don't crash on 1.7 servers
Signed-off-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'src')
-rw-r--r--src/g80_display.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/g80_display.c b/src/g80_display.c
index 3cbaac3..0cb9860 100644
--- a/src/g80_display.c
+++ b/src/g80_display.c
@@ -645,6 +645,12 @@ G80CrtcCommit(xf86CrtcPtr crtc)
C(0x00000080, 0);
}
+static void
+G80DispGammaSet(xf86CrtcPtr crtc, CARD16 *red, CARD16 *green, CARD16 *blue,
+ int size)
+{
+}
+
static const xf86CrtcFuncsRec g80_crtc_funcs = {
.dpms = G80CrtcDPMSSet,
.save = NULL,
@@ -654,7 +660,7 @@ static const xf86CrtcFuncsRec g80_crtc_funcs = {
.mode_fixup = G80CrtcModeFixup,
.prepare = G80CrtcPrepare,
.mode_set = G80CrtcModeSet,
- // .gamma_set = G80DispGammaSet,
+ .gamma_set = G80DispGammaSet,
.commit = G80CrtcCommit,
.shadow_create = NULL,
.shadow_destroy = NULL,