mirror of
https://github.com/X11Libre/xserver.git
synced 2026-01-26 14:03:17 +00:00
dix: remove dixLookupBuiltinColor() unused screen argument
Signed-off-by: Marc-Alexandre Espiaut <76531574+malespiaut@users.noreply.github.com>
This commit is contained in:
parent
fc8f9f4331
commit
e1b3bbafa8
@ -845,8 +845,7 @@ static const BuiltinColor BuiltinColors[] = {
|
||||
};
|
||||
|
||||
Bool
|
||||
dixLookupBuiltinColor(int screen,
|
||||
char *name,
|
||||
dixLookupBuiltinColor(char *name,
|
||||
unsigned int len,
|
||||
unsigned short *pred,
|
||||
unsigned short *pgreen,
|
||||
|
||||
@ -2758,7 +2758,7 @@ ProcAllocNamedColor(ClientPtr client)
|
||||
xAllocNamedColorReply rep = { 0 };
|
||||
|
||||
if (!dixLookupBuiltinColor
|
||||
(pcmp->pScreen->myNum, (char *) &stuff[1], stuff->nbytes,
|
||||
((char *) &stuff[1], stuff->nbytes,
|
||||
&rep.exactRed, &rep.exactGreen, &rep.exactBlue))
|
||||
return BadName;
|
||||
|
||||
@ -2987,8 +2987,7 @@ ProcStoreNamedColor(ClientPtr client)
|
||||
if (rc == Success) {
|
||||
xColorItem def;
|
||||
|
||||
if (dixLookupBuiltinColor(pcmp->pScreen->myNum,
|
||||
(char *) &stuff[1],
|
||||
if (dixLookupBuiltinColor((char *) &stuff[1],
|
||||
stuff->nbytes,
|
||||
&def.red,
|
||||
&def.green,
|
||||
@ -3063,8 +3062,7 @@ ProcLookupColor(ClientPtr client)
|
||||
}
|
||||
|
||||
CARD16 exactRed, exactGreen, exactBlue;
|
||||
if (!dixLookupBuiltinColor(pcmp->pScreen->myNum,
|
||||
(char *) &stuff[1],
|
||||
if (!dixLookupBuiltinColor((char *) &stuff[1],
|
||||
stuff->nbytes,
|
||||
&exactRed,
|
||||
&exactGreen,
|
||||
|
||||
@ -103,8 +103,7 @@ void InitClient(ClientPtr client, int i, void *ospriv);
|
||||
int FillFontPath(x_rpcbuf_t *rpcbuf);
|
||||
|
||||
/* lookup builtin color by name */
|
||||
Bool dixLookupBuiltinColor(int screen,
|
||||
char *name,
|
||||
Bool dixLookupBuiltinColor(char *name,
|
||||
unsigned len,
|
||||
unsigned short *pred,
|
||||
unsigned short *pgreen,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user