summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2009-10-05 18:35:20 +1000
committerDave Airlie <airlied@linux.ie>2009-10-05 18:35:20 +1000
commit9d596562496863d65850306d2126d8df98464de4 (patch)
tree474161ce62a3823c7576d0777727cd80db362701
parent876f43d4682df4d47d3e158f75e0ca6040f41c70 (diff)
kms: only touch gamma stuff on 1.7
for correct colormap operation you probably want 1.7
-rw-r--r--src/drmmode_display.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index 6f3f6df1..f82dec8d 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -297,8 +297,10 @@ drmmode_set_mode_major(xf86CrtcPtr crtc, DisplayModePtr mode,
if (!xf86CrtcRotate(crtc)) {
goto done;
}
+#if XORG_VERSION_CURRENT >= XORG_VERSION_NUMERIC(1,7,0,0,0)
crtc->funcs->gamma_set(crtc, crtc->gamma_red, crtc->gamma_green,
crtc->gamma_blue, crtc->gamma_size);
+#endif
drmmode_ConvertToKMode(crtc->scrn, &kmode, mode);