mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 05:54:08 +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:
committed by
Enrico Weigelt
parent
fc8f9f4331
commit
e1b3bbafa8
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user