[PATCH 07/15] xf86: move AdjustFrame to passing ScrnInfoPtr (ABI/API)
Alan Coopersmith
alan.coopersmith at oracle.com
Tue Apr 10 08:56:14 PDT 2012
On 04/10/12 07:47 AM, Dave Airlie wrote:
> This converts AdjustFrame code paths to passing a ScrnInfoPtr
> instead of an integer index.
>
> Signed-off-by: Dave Airlie <airlied at redhat.com>
> ---
> hw/xfree86/common/xf86Cursor.c | 4 ++--
> hw/xfree86/common/xf86VGAarbiter.c | 6 +++---
> hw/xfree86/common/xf86VGAarbiterPriv.h | 4 ++--
> hw/xfree86/common/xf86VidMode.c | 2 +-
> hw/xfree86/common/xf86str.h | 2 +-
> hw/xfree86/common/xf86xv.c | 7 +++----
> hw/xfree86/common/xf86xvpriv.h | 2 +-
> hw/xfree86/dri/dri.c | 9 ++++-----
> hw/xfree86/dri/dri.h | 4 ++--
> hw/xfree86/fbdevhw/fbdevhw.c | 7 +++----
> hw/xfree86/fbdevhw/fbdevhw.h | 2 +-
> hw/xfree86/fbdevhw/fbdevhwstub.c | 2 +-
> hw/xfree86/modes/xf86DiDGA.c | 2 +-
> 13 files changed, 25 insertions(+), 28 deletions(-)
diff --git a/hw/xfree86/doc/ddxDesign.xml b/hw/xfree86/doc/ddxDesign.xml
index ca5efc9..a6af7a1 100644
--- a/hw/xfree86/doc/ddxDesign.xml
+++ b/hw/xfree86/doc/ddxDesign.xml
@@ -9076,7 +9076,7 @@ ZZZScreenInit(int scrnIndex, ScreenPtr pScreen, int argc,
/* Set the viewport if supported */
- ZZZAdjustFrame(scrnIndex, pScrn->frameX0, pScrn->frameY0, 0);
+ ZZZAdjustFrame(pScrn, pScrn->frameX0, pScrn->frameY0, 0);
/*
* Setup the screen's visuals, and initialise the framebuffer
@@ -9262,7 +9262,7 @@ ZZZSwitchMode(int scrnIndex, DisplayModePtr mode, int flag
<programlisting>
static void
-ZZZAdjustFrame(int scrnIndex, int x, int y, int flags)
+ZZZAdjustFrame(ScrnInfoPtr pScrn, int x, int y, int flags)
{
/* Adjust the viewport */
}
--
-Alan Coopersmith- alan.coopersmith at oracle.com
Oracle Solaris Engineering - http://blogs.oracle.com/alanc
More information about the xorg-devel
mailing list