Commit 9e2588e5 authored by Mike Gabriel's avatar Mike Gabriel

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

Revert "regression fix for 52872a0d: Keep index parameter in AddScreen() for now. Requires proper ABI backport. (was: copy+paste error)." This reverts commit 34275825. Other than stated in the original commit msg, both regressions are related to inproper rebasing of two pull requests touch the same code portion.
parent 5421dd44
......@@ -4135,8 +4135,7 @@ void FreeScreen(ScreenPtr);
*/
int
AddScreen(Bool (*pfnInit) (int /*index*/ ,
ScreenPtr /*pScreen */ ,
AddScreen(Bool (*pfnInit) (ScreenPtr /*pScreen */ ,
int /*argc */ ,
char ** /*argv */
), int argc, char **argv)
......@@ -4175,7 +4174,7 @@ AddScreen(Bool (*pfnInit) (int /*index*/ ,
pScreen->rgf = ~0L; /* there are no scratch GCs yet*/
screenInfo.screens[i] = pScreen;
screenInfo.numScreens++;
if (!(*pfnInit)(i, pScreen, argc, argv))
if (!(*pfnInit)(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