summaryrefslogtreecommitdiff
path: root/src/apm_dga.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@gmail.com>2012-07-13 14:56:12 +1000
committerDave Airlie <airlied@gmail.com>2012-07-13 15:09:01 +1000
commit01bdd7d3d18f5d5c94aa99ccd7677f5928b37392 (patch)
treea07600347008e0d4bb2dbd2db55352ae682e5c28 /src/apm_dga.c
parentd63d7c600cb3927a5a2a5e223252cfd9a44112d4 (diff)
apm: initial compat api
Port to new server compat API. Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/apm_dga.c')
-rw-r--r--src/apm_dga.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/apm_dga.c b/src/apm_dga.c
index d250251..fa94006 100644
--- a/src/apm_dga.c
+++ b/src/apm_dga.c
@@ -243,8 +243,8 @@ ApmSetMode(ScrnInfoPtr pScrn, DGAModePtr pMode)
}
pScrn->currentMode = pApm->CurrentLayout.pMode;
- ApmSwitchMode(index, pScrn->currentMode, 0);
- ApmAdjustFrame(index, pScrn->frameX0, pScrn->frameY0, 0);
+ ApmSwitchMode(SWITCH_MODE_ARGS(pScrn, pScrn->currentMode));
+ ApmAdjustFrame(ADJUST_FRAME_ARGS(pScrn, pScrn->frameX0, pScrn->frameY0));
#if 0
if (pApm->AccelInfoRec)
XAAInit(pScrn->pScreen, pApm->AccelInfoRec);
@@ -269,7 +269,7 @@ ApmSetMode(ScrnInfoPtr pScrn, DGAModePtr pMode)
else
pApm->CurrentLayout.mask32 = 32 / pMode->bitsPerPixel - 1;
- ApmSwitchMode(index, pMode->mode, 0);
+ ApmSwitchMode(SWITCH_MODE_ARGS(pScrn, pMode->mode));
ApmSetupXAAInfo(pApm, NULL);
#if 0
@@ -321,7 +321,7 @@ ApmSetViewport(
ApmWriteSeq(0x1C, 0x2F);
pApm->apmLock = FALSE;
}
- pScrn->AdjustFrame(pScrn->pScreen->myNum, x, y, flags);
+ pScrn->AdjustFrame(ADJUST_FRAME_ARGS(pScrn, x, y));
if (pApm->VGAMap) {
/* Wait until vertical retrace is in progress. */
while (APMVGAB(0x3DA) & 0x08);