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

@@ -858,16 +858,13 @@ CreateGCperDepth(int screenNum)
}
Bool
CreateDefaultStipple(int screenNum)
CreateDefaultStipple(ScreenPtr pScreen)
{
ScreenPtr pScreen;
ChangeGCVal tmpval[3];
xRectangle rect;
CARD16 w, h;
GCPtr pgcScratch;
pScreen = screenInfo.screens[screenNum];
w = 16;
h = 16;
(*pScreen->QueryBestSize) (StippleShape, &w, &h, pScreen);