diff --git a/src/xgi.h b/src/xgi.h index 9764cbb..01c9553 100644 --- a/src/xgi.h +++ b/src/xgi.h @@ -616,11 +616,6 @@ typedef struct { int numDGAModes; Bool DGAactive; - /** - * \bug This field is set but never used. - */ - int DGAViewportStatus; - /** * Back old modeNo (if available) * diff --git a/src/xgi_dga.c b/src/xgi_dga.c index 8326df1..d4fae01 100644 --- a/src/xgi_dga.c +++ b/src/xgi_dga.c @@ -320,24 +320,20 @@ XGI_SetMode( } static int -XGI_GetViewport( - ScrnInfoPtr pScrn -){ - XGIPtr pXGI = XGIPTR(pScrn); +XGI_GetViewport(ScrnInfoPtr pScrn) +{ + (void) pScrn; - return pXGI->DGAViewportStatus; + /* There are never pending Adjusts */ + return 0; } static void -XGI_SetViewport( - ScrnInfoPtr pScrn, - int x, int y, - int flags -){ +XGI_SetViewport(ScrnInfoPtr pScrn, int x, int y, int flags) +{ XGIPtr pXGI = XGIPTR(pScrn); (*pScrn->AdjustFrame)(pScrn->pScreen->myNum, x, y, flags); - pXGI->DGAViewportStatus = 0; /* There are never pending Adjusts */ } static void