dix: let CreateDefaultStipple() accept ScreenPtr instead of screen id

It's only caller already has the ScreenPtr, so it doesn't make any sense
passing in the screen number and let that function retrieve the pointer
on its own again.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-08-11 15:57:11 +02:00
committed by Enrico Weigelt
parent a18524fa5d
commit d4fc1506ad
3 changed files with 3 additions and 6 deletions

View File

@@ -218,7 +218,7 @@ dix_main(int argc, char *argv[], char *envp[])
FatalError("failed to create screen resources");
if (!CreateGCperDepth(i))
FatalError("failed to create scratch GCs");
if (!CreateDefaultStipple(i))
if (!CreateDefaultStipple(pScreen))
FatalError("failed to create default stipple");
if (!CreateRootWindow(pScreen))
FatalError("failed to create root window");