mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
dix: inline SProcCreateGlyphCursor()
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
5c3980b407
commit
b19f3babe7
@@ -3208,12 +3208,26 @@ ProcCreateCursor(ClientPtr client)
|
||||
int
|
||||
ProcCreateGlyphCursor(ClientPtr client)
|
||||
{
|
||||
REQUEST(xCreateGlyphCursorReq);
|
||||
REQUEST_SIZE_MATCH(xCreateGlyphCursorReq);
|
||||
|
||||
if (client->swapped) {
|
||||
swapl(&stuff->cid);
|
||||
swapl(&stuff->source);
|
||||
swapl(&stuff->mask);
|
||||
swaps(&stuff->sourceChar);
|
||||
swaps(&stuff->maskChar);
|
||||
swaps(&stuff->foreRed);
|
||||
swaps(&stuff->foreGreen);
|
||||
swaps(&stuff->foreBlue);
|
||||
swaps(&stuff->backRed);
|
||||
swaps(&stuff->backGreen);
|
||||
swaps(&stuff->backBlue);
|
||||
}
|
||||
|
||||
CursorPtr pCursor;
|
||||
int res;
|
||||
|
||||
REQUEST(xCreateGlyphCursorReq);
|
||||
|
||||
REQUEST_SIZE_MATCH(xCreateGlyphCursorReq);
|
||||
LEGAL_NEW_RESOURCE(stuff->cid, client);
|
||||
|
||||
res = AllocGlyphCursor(stuff->source, stuff->sourceChar,
|
||||
|
||||
Reference in New Issue
Block a user