mirror of
https://github.com/X11Libre/xserver.git
synced 2026-09-30 21:53:25 +00:00
dixChangeGC callers: Use ChangeGCVal instead of XID almost everywhere.
The exceptions are ProcChangeGC and CreateGC. Signed-off-by: Jamey Sharp <jamey@minilop.net> Reviewed-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
parent
95728ca09d
commit
e2929db7b7
22 changed files with 181 additions and 164 deletions
|
|
@ -803,7 +803,9 @@ miZeroPolyArc(DrawablePtr pDraw, GCPtr pGC, int narcs, xArc *parcs)
|
|||
if ((pGC->fillStyle == FillSolid) ||
|
||||
(pGC->fillStyle == FillStippled))
|
||||
{
|
||||
dixChangeGC(NullClient, pGC, GCForeground, (XID *)&pGC->bgPixel, NULL);
|
||||
ChangeGCVal gcval;
|
||||
gcval.val = pGC->bgPixel;
|
||||
dixChangeGC(NullClient, pGC, GCForeground, NULL, &gcval);
|
||||
ValidateGC(pDraw, pGC);
|
||||
}
|
||||
pts = &points[numPts >> 1];
|
||||
|
|
@ -831,7 +833,9 @@ miZeroPolyArc(DrawablePtr pDraw, GCPtr pGC, int narcs, xArc *parcs)
|
|||
if ((pGC->fillStyle == FillSolid) ||
|
||||
(pGC->fillStyle == FillStippled))
|
||||
{
|
||||
dixChangeGC(NullClient, pGC, GCForeground, &fgPixel, NULL);
|
||||
ChangeGCVal gcval;
|
||||
gcval.val = fgPixel;
|
||||
dixChangeGC(NullClient, pGC, GCForeground, NULL, &gcval);
|
||||
ValidateGC(pDraw, pGC);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue