summaryrefslogtreecommitdiff
path: root/src/gx_rotate.c
diff options
context:
space:
mode:
authorMaarten Lankhorst <maarten.lankhorst@canonical.com>2012-07-21 12:36:17 +0200
committerMart Raudsepp <leio@gentoo.org>2012-07-26 05:18:14 +0300
commit68646c3119a69a8391a49f2d565672d73829e2c9 (patch)
tree5e4f053ef16d225f165c9485ad6b738d2b341351 /src/gx_rotate.c
parentcb0e67bbc019b170194b3b51e2a47fca8d3aeac1 (diff)
Allow building on Xservers without XAA
Diffstat (limited to 'src/gx_rotate.c')
-rw-r--r--src/gx_rotate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gx_rotate.c b/src/gx_rotate.c
index 9eb39e7..2a86b30 100644
--- a/src/gx_rotate.c
+++ b/src/gx_rotate.c
@@ -158,7 +158,7 @@ GXRotate(ScrnInfoPtr pScrni, DisplayModePtr mode)
pScrni->fbOffset));
/* Don't use XAA pixmap cache or offscreen pixmaps when rotated */
-
+#if XF86XAA
if (pGeode->AccelInfoRec) {
if (pGeode->rotation == RR_Rotate_0) {
pGeode->AccelInfoRec->Flags =
@@ -174,6 +174,7 @@ GXRotate(ScrnInfoPtr pScrni, DisplayModePtr mode)
pGeode->AccelInfoRec->maxOffPixHeight = 1;
}
}
+#endif
return TRUE;