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 <[email protected]>
> ---
>  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-&gt;frameX0, pScrn-&gt;frameY0, 0);
+    ZZZAdjustFrame(pScrn, pScrn-&gt;frameX0, pScrn-&gt;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-              [email protected]
         Oracle Solaris Engineering - http://blogs.oracle.com/alanc
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to