summaryrefslogtreecommitdiff
path: root/src/cir_dga.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2012-06-05 19:26:15 +0100
committerDave Airlie <airlied@redhat.com>2012-06-05 19:26:15 +0100
commit9a5e19597be4f5ee4c1030e4a716207789e78668 (patch)
tree35b0cbabf4db38ab2bc6734740db9e5284aca4cc /src/cir_dga.c
parent2e35bc316d7b74feca177c87a49a8050a2a0ff00 (diff)
cirrus: convert to compat server API.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/cir_dga.c')
-rw-r--r--src/cir_dga.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cir_dga.c b/src/cir_dga.c
index f930231..44abfd9 100644
--- a/src/cir_dga.c
+++ b/src/cir_dga.c
@@ -69,7 +69,7 @@ DGAFunctionRec CirDGAFuncs = {
_X_EXPORT Bool
CirDGAInit(ScreenPtr pScreen)
{
- ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum];
+ ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen);
CirPtr pCir = CIRPTR(pScrn);
DGAModePtr modes = NULL, newmodes = NULL, currentMode;
DisplayModePtr pMode, firstMode;
@@ -191,7 +191,7 @@ Cir_SetViewport(
CirPtr pCir = CIRPTR(pScrn);
vgaHWPtr hwp = VGAHWPTR(pScrn);
- pScrn->AdjustFrame(pScrn->pScreen->myNum, x, y, flags);
+ pScrn->AdjustFrame(ADJUST_FRAME_ARGS(pScrn, x, y));
while((hwp->readST01(hwp) & 0x08));
while(!(hwp->readST01(hwp) & 0x08));