diff options
author | Dave Airlie <airlied@redhat.com> | 2012-06-06 10:41:11 +0100 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-06-06 10:41:11 +0100 |
commit | a9f3a66e355b9f19c312d399771fb1d8eb2e046d (patch) | |
tree | 1f86ca50a5ccaf835a84722458954b97b757f478 /src/atidga.c | |
parent | 84468ba28853fa57170025d9c25cb0029a386ff4 (diff) |
mach64: port to new compat API.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/atidga.c')
-rw-r--r-- | src/atidga.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/atidga.c b/src/atidga.c index c1cd163..2560e6b 100644 --- a/src/atidga.c +++ b/src/atidga.c @@ -28,12 +28,12 @@ #include <string.h> #include "ati.h" -#include "atiadjust.h" #include "atichip.h" #include "atidac.h" #include "atidga.h" #include "atimode.h" #include "atistruct.h" +#include "atiadjust.h" #include "dgaproc.h" @@ -94,7 +94,6 @@ ATIDGASetMode { ATIPtr pATI = ATIPTR(pScreenInfo); DisplayModePtr pMode; - int iScreen = pScreenInfo->scrnIndex; int frameX0, frameY0; if (pDGAMode) @@ -128,11 +127,11 @@ ATIDGASetMode ATIAdjustPreInit(pATI); ATIModePreInit(pScreenInfo, pATI, &pATI->NewHW); - if (!(*pScreenInfo->SwitchMode)(iScreen, pMode, 0)) + if (!(*pScreenInfo->SwitchMode)(SWITCH_MODE_ARGS(pScreenInfo, pMode))) return FALSE; if (!pDGAMode) pATI->currentMode = NULL; - (*pScreenInfo->AdjustFrame)(iScreen, frameX0, frameY0, 0); + (*pScreenInfo->AdjustFrame)(ADJUST_FRAME_ARGS(pScreenInfo, frameX0, frameY0)); return TRUE; } @@ -151,7 +150,7 @@ ATIDGASetViewport int flags ) { - (*pScreenInfo->AdjustFrame)(pScreenInfo->pScreen->myNum, x, y, flags); + (*pScreenInfo->AdjustFrame)(ADJUST_FRAME_ARGS(pScreenInfo, x, y)); } /* |