summaryrefslogtreecommitdiff
path: root/src/apm_dga.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2012-07-17 14:52:05 +1000
committerDave Airlie <airlied@redhat.com>2012-07-17 14:52:05 +1000
commita57b784ddfdc9369f6dfe498333c25bfea883e8f (patch)
treed969d99de2b293faf0423a5f78b3fd49e30669c3 /src/apm_dga.c
parentd9a3071242724325d4e3672b3e70d8457f993f78 (diff)
apm: convert to new screen conversion apis.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/apm_dga.c')
-rw-r--r--src/apm_dga.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/apm_dga.c b/src/apm_dga.c
index dc95a6f..6e92123 100644
--- a/src/apm_dga.c
+++ b/src/apm_dga.c
@@ -171,7 +171,7 @@ SECOND_PASS:
Bool
ApmDGAInit(ScreenPtr pScreen)
{
- ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
+ ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen);
APMDECL(pScrn);
DGAModePtr modes = NULL;
int num = 0;