summaryrefslogtreecommitdiff
path: root/src/drmmode_display.c
diff options
context:
space:
mode:
authorMichel Dänzer <daenzer@vmware.com>2009-07-19 16:05:29 +0200
committerMichel Dänzer <michel@daenzer.net>2009-07-19 16:05:29 +0200
commite372f845b0defaf2d2c9ef3cbbf7498e09d9372e (patch)
tree6145ce484e680b2de8852f1c9acc3b8b79495ef9 /src/drmmode_display.c
parente38305aebdc95f80f5b4b3e5ba541ea67dc05f01 (diff)
Guard reference to CRTC active field.
Fixes build against older xserver.
Diffstat (limited to 'src/drmmode_display.c')
-rw-r--r--src/drmmode_display.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index 42b0b157..3f4ccfce 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -323,8 +323,11 @@ done:
crtc->y = saved_y;
crtc->rotation = saved_rotation;
crtc->mode = saved_mode;
- } else
+ }
+#if defined(XF86_CRTC_VERSION) && XF86_CRTC_VERSION >= 3
+ else
crtc->active = TRUE;
+#endif
return ret;
}