From 9c50f4c0c6c718b580f511d92ebd3c8f5aaebf2a Mon Sep 17 00:00:00 2001 From: Paulo Cesar Pereira de Andrade Date: Fri, 18 Jul 2008 16:58:28 -0300 Subject: [PATCH] Call pScrn->AdjustFrame if not NULL Instead of the undefined symbol XGIAdjustFrame. --- src/xgi_dga.c | 3 ++- src/xgi_driver.h | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xgi_dga.c b/src/xgi_dga.c index e53d227..bfa6ddc 100644 --- a/src/xgi_dga.c +++ b/src/xgi_dga.c @@ -203,7 +203,8 @@ static void XGIDGASetViewport(ScrnInfoPtr pScrn, { XGIPtr pXGI = XGIPTR(pScrn); - XGIAdjustFrame(pScrn->pScreen->myNum, x, y, flags); + if (pScrn->AdjustFrame) + (pScrn->AdjustFrame)(pScrn->pScreen->myNum, x, y, flags); pXGI->dgaViewportStatus = 0; /* TRIDENTAdjustFrame loops until finished */ } diff --git a/src/xgi_driver.h b/src/xgi_driver.h index 28d7aa8..adf038b 100644 --- a/src/xgi_driver.h +++ b/src/xgi_driver.h @@ -35,6 +35,5 @@ #define IsPrimaryCard (xf86IsPrimaryPci(pXGI->pPciInfo)) extern Bool XGISwitchMode(int scrnIndex, DisplayModePtr mode, int flags); -extern void XGIAdjustFrame(int scrnIndex, int x, int y, int flags); #endif -- 1.5.6