summaryrefslogtreecommitdiff
path: root/src/ast_cursor.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2012-06-06 12:00:14 +0100
committerDave Airlie <airlied@redhat.com>2012-06-06 12:00:14 +0100
commit1af03ed39b6692231544e5c7b8325fa8d70c728d (patch)
tree3abf9399a50a62fdc5f851bd50bde21712ce855d /src/ast_cursor.c
parentf981caeb7ebf53fea9d8f852edea6605d44d975e (diff)
ast: port to new compat API.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/ast_cursor.c')
-rw-r--r--src/ast_cursor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ast_cursor.c b/src/ast_cursor.c
index b3f2061..4fcbf95 100644
--- a/src/ast_cursor.c
+++ b/src/ast_cursor.c
@@ -76,7 +76,7 @@ static void ASTSetCursorPosition_AST1180(ScrnInfoPtr pScrn, int x, int y);
Bool
ASTCursorInit(ScreenPtr pScreen)
{
- ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
+ ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen);
ASTRecPtr pAST = ASTPTR(pScrn);
xf86CursorInfoPtr infoPtr;
@@ -126,7 +126,7 @@ Bool bInitHWC(ScrnInfoPtr pScrn, ASTRecPtr pAST)
/* allocate HWC cache */
if (!pAST->pHWCPtr) {
- pScreen = screenInfo.screens[pScrn->scrnIndex];
+ pScreen = xf86ScrnToScreen(pScrn);
pAST->pHWCPtr = xf86AllocateOffscreenLinear (pScreen, (HWC_SIZE+HWC_SIGNATURE_SIZE)*pAST->HWCInfo.HWC_NUM, HWC_ALIGN, NULL, NULL, NULL);
if (!pAST->pHWCPtr) {