From 7c7fc069b7a50813c3ff88706e5616418f9ec76b Mon Sep 17 00:00:00 2001 From: Egbert Eich Date: Tue, 22 Apr 2014 12:37:49 +0200 Subject: Fix compiler warnings: add DrawablePtr argument to ASTPutImage An archaeological survey revealed that this ABI change took place in 2006 already. Signed-off-by: Egbert Eich Acked-by: Y.C. Chen --- 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); -- cgit v1.2.3