dix: CreateColormap() pass in ClientPtr instead of client index

The function actually operates on ClientRec, so we can pass it in
directly, so it doesn't need to fetch it from clients[] array itself.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult
2025-03-05 15:17:33 +01:00
committed by Enrico Weigelt, metux IT consult .
parent 2ef147e9e3
commit 317053a20d
8 changed files with 37 additions and 31 deletions

View File

@@ -432,8 +432,8 @@ PictureInitIndexedFormat(ScreenPtr pScreen, PictFormatPtr format)
if (pVisual == NULL)
return FALSE;
if (CreateColormap(FakeClientID(0), pScreen, pVisual,
&format->index.pColormap, AllocNone, 0)
if (dixCreateColormap(FakeClientID(0), pScreen, pVisual,
&format->index.pColormap, AllocNone, serverClient)
!= Success)
return FALSE;
}