summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2013-01-07 10:15:51 -0500
committerAdam Jackson <ajax@redhat.com>2013-01-08 10:12:59 -0500
commitf1c485513c37a7fe70a5d9613fba334f822c49a8 (patch)
treeef6effd0248721f926c5842f1e1c15b221e9d172
parentbe3abf8570ad70ff7ebbaab1910798c8ddd1a3ae (diff)
Fix XGIValidMode for 1.13 API
Signed-off-by: Adam Jackson <ajax@redhat.com>
-rwxr-xr-xsrc/xgi_driver.c4
-rwxr-xr-xsrc/xgi_driver.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/xgi_driver.c b/src/xgi_driver.c
index a7dd2e2..0292296 100755
--- a/src/xgi_driver.c
+++ b/src/xgi_driver.c
@@ -5707,9 +5707,9 @@ int XGIValidateUserDefMode(XGIPtr pXGI, DisplayModePtr mode)
/* Checks if a mode is suitable for the selected chipset. */
static int
-XGIValidMode(int scrnIndex, DisplayModePtr mode, Bool verbose, int flags)
+XGIValidMode(SCRN_ARG_TYPE arg, DisplayModePtr mode, Bool verbose, int flags)
{
- ScrnInfoPtr pScrn = xf86Screens[scrnIndex];
+ SCRN_INFO_PTR(arg);
XGIPtr pXGI = XGIPTR(pScrn);
int HDisplay = mode->HDisplay;
int VDisplay = mode->VDisplay;
diff --git a/src/xgi_driver.h b/src/xgi_driver.h
index 76a25e3..0754f16 100755
--- a/src/xgi_driver.h
+++ b/src/xgi_driver.h
@@ -741,7 +741,7 @@ static Bool XGISaveScreenDH(ScreenPtr pScreen, int mode);
/* Optional functions */
static void XGIFreeScreen(FREE_SCREEN_ARGS_DECL);
-static int XGIValidMode(int scrnIndex, DisplayModePtr mode, Bool verbose,
+static int XGIValidMode(SCRN_ARG_TYPE arg, DisplayModePtr mode, Bool verbose,
int flags);
/* Internally used functions */
static Bool XGIMapMem(ScrnInfoPtr pScrn);