mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 03:44:06 +00:00
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:
committed by
Enrico Weigelt
parent
a18524fa5d
commit
d4fc1506ad
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user