aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver
diff options
context:
space:
mode:
Diffstat (limited to 'nx-X11/programs/Xserver')
-rw-r--r--nx-X11/programs/Xserver/dix/dispatch.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/nx-X11/programs/Xserver/dix/dispatch.c b/nx-X11/programs/Xserver/dix/dispatch.c
index 8294a583a..09b209e66 100644
--- a/nx-X11/programs/Xserver/dix/dispatch.c
+++ b/nx-X11/programs/Xserver/dix/dispatch.c
@@ -4135,7 +4135,8 @@ void FreeScreen(ScreenPtr);
*/
int
-AddScreen(Bool (*pfnInit) (ScreenPtr /*pScreen */ ,
+AddScreen(Bool (*pfnInit) (int /*index*/ ,
+ ScreenPtr /*pScreen */ ,
int /*argc */ ,
char ** /*argv */
), int argc, char **argv)
@@ -4174,7 +4175,7 @@ AddScreen(Bool (*pfnInit) (ScreenPtr /*pScreen */ ,
pScreen->rgf = ~0L; /* there are no scratch GCs yet*/
screenInfo.screens[i] = pScreen;
screenInfo.numScreens++;
- if (!(*pfnInit)(pScreen, argc, argv))
+ if (!(*pfnInit)(i, pScreen, argc, argv))
{
FreeScreen(pScreen);
screenInfo.numScreens--;