summaryrefslogtreecommitdiff
path: root/src/atiadjust.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2012-06-06 10:41:11 +0100
committerDave Airlie <airlied@redhat.com>2012-06-06 10:41:11 +0100
commita9f3a66e355b9f19c312d399771fb1d8eb2e046d (patch)
tree1f86ca50a5ccaf835a84722458954b97b757f478 /src/atiadjust.c
parent84468ba28853fa57170025d9c25cb0029a386ff4 (diff)
mach64: port to new compat API.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/atiadjust.c')
-rw-r--r--src/atiadjust.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/atiadjust.c b/src/atiadjust.c
index 267186f..7e3e4f8 100644
--- a/src/atiadjust.c
+++ b/src/atiadjust.c
@@ -25,12 +25,14 @@
#endif
#include "ati.h"
-#include "atiadjust.h"
+#include "atistruct.h"
#include "atichip.h"
#include "atilock.h"
#include "atimach64io.h"
#include "atiwonderio.h"
+#include "atiadjust.h"
+
/*
* The display start address is expressed in units of 32-bit (VGA) or 64-bit
* (accelerator) words where all planar modes are considered as 4bpp modes.
@@ -83,15 +85,9 @@ ATIAdjustPreInit
* window.
*/
void
-ATIAdjustFrame
-(
- int scrnIndex,
- int x,
- int y,
- int flags
-)
+ATIAdjustFrame(ADJUST_FRAME_ARGS_DECL)
{
- ScrnInfoPtr pScreenInfo = xf86Screens[scrnIndex];
+ SCRN_INFO_PTR(arg);
ATIPtr pATI = ATIPTR(pScreenInfo);
int Base, xy;