summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichel Dänzer <michel.daenzer@amd.com>2016-05-31 17:47:33 +0900
committerMichel Dänzer <michel@daenzer.net>2016-05-31 17:47:33 +0900
commite2d44d7f8c50af6c4ff00479245e3b73d81f6141 (patch)
tree2130d409a7e1abd5e0dad1eae74c3a1e07ff8205
parentc734f380f1df9f21229ce741eef59955d2a8b535 (diff)
Adapt to XF86_CRTC_VERSION 7
The driverIsPerformingTransform field becomes an enum, and xf86CrtcTransformCursorPos is no longer necessary.
-rw-r--r--src/drmmode_display.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index b365212..3891e13 100644
--- a/src/drmmode_display.c
+++ b/src/drmmode_display.c
@@ -242,7 +242,11 @@ drmmode_set_rotation(xf86CrtcPtr crtc, Rotation rotation)
return FALSE;
}
+#if XF86_CRTC_VERSION >= 7
+ crtc->driverIsPerformingTransform = XF86DriverTransformOutput;
+#else
crtc->driverIsPerformingTransform = TRUE;
+#endif
}
#endif
return xf86CrtcRotate(crtc);
@@ -464,7 +468,7 @@ drmmode_show_cursor(xf86CrtcPtr crtc)
h = crtc->mode.VDisplay - crtc_y;
}
-#if XF86_CRTC_VERSION >= 4
+#if XF86_CRTC_VERSION >= 4 && XF86_CRTC_VERSION < 7
/* NOTE: driver is taking care of rotation in hw, which means
* we need to deal w/ transformation of mouse cursor ourself:
*/