From 3e3c32309cf6d9045d821da52b7547831d819b31 Mon Sep 17 00:00:00 2001 From: Lars-Peter Clausen Date: Sun, 22 Feb 2009 19:49:28 +0100 Subject: Add legacy modesetting path for xorg prior to 1.5.0.0 It doesn't support rotation yet. --- src/glamo-driver.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/glamo-driver.c') 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, -- cgit v1.2.3