summaryrefslogtreecommitdiff
path: root/src/ast_accel.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ast_accel.c')
-rw-r--r--src/ast_accel.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ast_accel.c b/src/ast_accel.c
index 2d3dab3..f85692b 100644
--- a/src/ast_accel.c
+++ b/src/ast_accel.c
@@ -162,7 +162,7 @@ Bool
ASTAccelInit(ScreenPtr pScreen)
{
XAAInfoRecPtr infoPtr;
- ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
+ ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen);
ASTRecPtr pAST = ASTPTR(pScrn);
pAST->AccelInfoPtr = infoPtr = XAACreateInfoRec();