Commit 34275825 authored by Mike Gabriel's avatar Mike Gabriel

regression fix for 52872a0d: Keep index parameter in AddScreen() for now.…

regression fix for 52872a0d: Keep index parameter in AddScreen() for now. Requires proper ABI backport. (was: copy+paste error).
parent d7d2aeea
......@@ -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--;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment