mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +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
5
dix/gc.c
5
dix/gc.c
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user