diff options
author | Dave Airlie <airlied@redhat.com> | 2012-06-05 11:14:37 +0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-06-05 11:14:37 +0100 |
commit | 1491470ee0745bf8303fa085bd30f7464098f1f2 (patch) | |
tree | 9ac641e85bac2098084e9566c0bc295eba119bcf /src/dummy_dga.c | |
parent | 6ff612955a1a8591bf21f6aa56e7b6ebd8e2db48 (diff) |
dummy: convert to the new server APIs.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/dummy_dga.c')
-rw-r--r-- | src/dummy_dga.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dummy_dga.c b/src/dummy_dga.c index a35f3c9..d16d09f 100644 --- a/src/dummy_dga.c +++ b/src/dummy_dga.c @@ -116,8 +116,8 @@ DUMMY_SetMode( if(!pMode) { /* restore the original mode */ if(pDUMMY->DGAactive) { pScrn->currentMode = DUMMYSavedDGAModes[index]; - DUMMYSwitchMode(index, pScrn->currentMode, 0); - DUMMYAdjustFrame(index, 0, 0, 0); + DUMMYSwitchMode(SWITCH_MODE_ARGS(pScrn, pScrn->currentMode)); + DUMMYAdjustFrame(ADJUST_FRAME_ARGS(pScrn, 0, 0)); pDUMMY->DGAactive = FALSE; } } else { @@ -126,7 +126,7 @@ DUMMY_SetMode( pDUMMY->DGAactive = TRUE; } - DUMMYSwitchMode(index, pMode->mode, 0); + DUMMYSwitchMode(SWITCH_MODE_ARGS(pScrn, pMode->mode)); } return TRUE; @@ -149,7 +149,7 @@ DUMMY_SetViewport( ){ DUMMYPtr pDUMMY = DUMMYPTR(pScrn); - DUMMYAdjustFrame(pScrn->pScreen->myNum, x, y, flags); + DUMMYAdjustFrame(ADJUST_FRAME_ARGS(pScrn, x, y)); pDUMMY->DGAViewportStatus = 0; } |