summaryrefslogtreecommitdiff
path: root/src/glamo-driver.c
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2009-02-22 19:49:28 +0100
committerLars-Peter Clausen <lars@metafoo.de>2009-02-22 19:49:28 +0100
commit3e3c32309cf6d9045d821da52b7547831d819b31 (patch)
tree4941572f37bc411c83c503d6ea9c4a8acae12866 /src/glamo-driver.c
parent686c1d128d0f8a14ff4cb2a4d2223749f85854a7 (diff)
Add legacy modesetting path for xorg prior to 1.5.0.0
It doesn't support rotation yet.
Diffstat (limited to 'src/glamo-driver.c')
-rw-r--r--src/glamo-driver.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/glamo-driver.c b/src/glamo-driver.c
index ae8d3f4..2c8735f 100644
--- a/src/glamo-driver.c
+++ b/src/glamo-driver.c
@@ -599,8 +599,10 @@ GlamoScreenInit(int scrnIndex, ScreenPtr pScreen, int argc, char **argv)
GlamoEnterVT(scrnIndex, 0);
xf86CrtcScreenInit(pScreen);
+#if XORG_VERSION_CURRENT >= XORG_VERSION_NUMERIC(1,5,0,0,0)
xf86RandR12SetRotations(pScreen, RR_Rotate_0 | RR_Rotate_90 |
RR_Rotate_180 | RR_Rotate_270);
+#endif
/* colormap */
if (!miCreateDefColormap(pScreen)) {
xf86DrvMsg(scrnIndex, X_ERROR,