summaryrefslogtreecommitdiff
path: root/src/ffb_dga.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2012-06-07 18:41:23 +0100
committerDave Airlie <airlied@redhat.com>2012-06-07 18:41:23 +0100
commit5954960d4bbaee9ee4d2d3a4d1ca9a93d02f6697 (patch)
tree67463f90267aa97537d4ca0734deea895e602e0d /src/ffb_dga.c
parent20e5b57ca3186dd58f88bc663e410aeea638100f (diff)
sunffb: port to new compat API.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/ffb_dga.c')
-rw-r--r--src/ffb_dga.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ffb_dga.c b/src/ffb_dga.c
index 82ad44f..84598db 100644
--- a/src/ffb_dga.c
+++ b/src/ffb_dga.c
@@ -61,7 +61,7 @@ static DGAFunctionRec FFB_DGAFuncs = {
void FFB_InitDGA(ScreenPtr pScreen)
{
- ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
+ ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen);
FFBPtr pFfb;
DGAModePtr mode;
Bool result;