summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Airlie <airlied@linux.ie>2008-12-29 11:51:58 +1000
committerZhenyu Wang <zhenyu.z.wang@intel.com>2008-12-30 18:07:39 +0800
commit649b32a5dc941a688f4671b903774ea2ea97d2f2 (patch)
treefe29c79b85c548721a01e64cc72fa8f41a95a7c9
parentb076d399344e5b6495e069342f7f862c810c8ece (diff)
modeset: transformPresent is a new API member
(cherry picked from commit 6b9f421b792c701e909d81ae2b6e6a47fb069b0b)
-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 47a1dbc0..87b58211 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -148,7 +148,9 @@ drmmode_set_mode_major(xf86CrtcPtr crtc, DisplayModePtr mode,
crtc->x = x;
crtc->y = y;
crtc->rotation = rotation;
+#if XORG_VERSION_CURRENT >= XORG_VERSION_NUMERIC(1,5,99,0,0)
crtc->transformPresent = FALSE;
+#endif
output_ids = xcalloc(sizeof(uint32_t), xf86_config->num_output);
if (!output_ids) {