mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
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:
committed by
Enrico Weigelt, metux IT consult .
parent
2ef147e9e3
commit
317053a20d
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user