mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 05:54:08 +00:00
dix: inline SProcQueryColor()
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
3e4bb9a0d9
commit
28d930b16c
@@ -3011,12 +3011,17 @@ ProcStoreNamedColor(ClientPtr client)
|
||||
int
|
||||
ProcQueryColors(ClientPtr client)
|
||||
{
|
||||
REQUEST(xQueryColorsReq);
|
||||
REQUEST_AT_LEAST_SIZE(xQueryColorsReq);
|
||||
|
||||
if (client->swapped) {
|
||||
swapl(&stuff->cmap);
|
||||
SwapRestL(stuff);
|
||||
}
|
||||
|
||||
ColormapPtr pcmp;
|
||||
int rc;
|
||||
|
||||
REQUEST(xQueryColorsReq);
|
||||
|
||||
REQUEST_AT_LEAST_SIZE(xQueryColorsReq);
|
||||
rc = dixLookupResourceByType((void **) &pcmp, stuff->cmap, X11_RESTYPE_COLORMAP,
|
||||
client, DixReadAccess);
|
||||
if (rc == Success) {
|
||||
|
||||
Reference in New Issue
Block a user