[PATCH driver/ast 03/15] Fix compiler warnings: add DrawablePtr argument to ASTPutImage

Egbert Eich eich at freedesktop.org
Thu Apr 24 10:36:51 PDT 2014


From: Egbert Eich <eich at suse.de>

An archaeological survey revealed that this ABI change took place
in 2006 already.

Signed-off-by: Egbert Eich <eich at suse.de>
---
 src/ast_driver.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/src/ast_driver.c b/src/ast_driver.c
index 639562d..b04b026 100644
--- a/src/ast_driver.c
+++ b/src/ast_driver.c
@@ -128,7 +128,11 @@ static Bool ASTModeInit(ScrnInfoPtr pScrn, DisplayModePtr mode);
 static void ASTInitVideo(ScreenPtr pScreen);
 static int  ASTPutImage( ScrnInfoPtr,
         short, short, short, short, short, short, short, short,
-        int, unsigned char*, short, short, Bool, RegionPtr, pointer);
+        int, unsigned char*, short, short, Bool, RegionPtr, pointer
+#if GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) >= 1
+		          , DrawablePtr pDraw
+#endif
+			 );
 #endif
 
 /*
@@ -2134,6 +2138,9 @@ static int ASTPutImage(ScrnInfoPtr pScrn,
                           short width, short height,
                           Bool sync,
                           RegionPtr clipBoxes, pointer data
+#if GET_ABI_MAJOR(ABI_VIDEODRV_VERSION) >= 1
+		          , DrawablePtr pDraw
+#endif
 )
 {
     ASTPtr pAST = ASTPTR(pScrn);
-- 
1.8.4.5



More information about the xorg-devel mailing list