diff options
author | Dave Airlie <airlied@redhat.com> | 2012-06-06 11:22:29 +0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-06-06 11:22:29 +0100 |
commit | a2714fb09e1e0badbb3e98e24d4b1ed92003bdb9 (patch) | |
tree | 80a4688783ad46e33fc90e8c014f6a32f41e8c42 /src/savage_dga.c | |
parent | de22eab9a21df80fe965dc37d21ba3ac2b9f5fd0 (diff) |
savage: port to new compat API
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/savage_dga.c')
-rw-r--r-- | src/savage_dga.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/savage_dga.c b/src/savage_dga.c index 1c4d884..cb541d3 100644 --- a/src/savage_dga.c +++ b/src/savage_dga.c @@ -202,7 +202,7 @@ SECOND_PASS: Bool SavageDGAInit(ScreenPtr pScreen) { - ScrnInfoPtr pScrn = xf86Screens[pScreen->myNum]; + ScrnInfoPtr pScrn = xf86ScreenToScrn(pScreen); SavagePtr psav = SAVPTR(pScrn); DGAModePtr modes = NULL; int num = 0; @@ -276,7 +276,7 @@ Savage_SetMode( pScrn->currentMode = OldMode[index]; psav->DGAactive = FALSE; - SavageSwitchMode(index, pScrn->currentMode, 0); + SavageSwitchMode(SWITCH_MODE_ARGS(pScrn, pScrn->currentMode)); if( psav->hwcursor && psav->hwc_on ) SavageShowCursor(pScrn); } else { @@ -312,7 +312,7 @@ Savage_SetMode( (pMode->bitsPerPixel >> 3); /* psav->UseBIOS = FALSE; */ - SavageSwitchMode(index, pMode->mode, 0); + SavageSwitchMode(SWITCH_MODE_ARGS(pScrn, pMode->mode)); psav->UseBIOS = holdBIOS; } @@ -337,7 +337,7 @@ Savage_SetViewport( ){ SavagePtr psav = SAVPTR(pScrn); - SavageAdjustFrame(pScrn->pScreen->myNum, x, y, flags); + SavageAdjustFrame(ADJUST_FRAME_ARGS(pScrn, x, y)); psav->DGAViewportStatus = 0; /* MGAAdjustFrame loops until finished */ } |