diff options
author | Jamey Sharp <jamey@minilop.net> | 2010-05-06 21:39:43 -0700 |
---|---|---|
committer | Jamey Sharp <jamey@minilop.net> | 2010-05-12 18:09:55 -0700 |
commit | 65cedf39054cf3a1e695e84ac228cce9e8d48097 (patch) | |
tree | 9a0b41cf70562a6e9e06263486f2fcf1552da46a /mi/miwideline.c | |
parent | afcbbd6dfea51c5b0adca0d720edc02ba0c2dc16 (diff) |
Kill DoChangeGC in favor of dixChangeGC.
This doesn't change any behavior, but it isn't clear whether NullClient
is correct in all cases. As ajax says,
> For most of these changes, I think it's correct to use NullClient,
> since they are server-initiated changes and should not fail for (eg)
> xace reasons. ... At any rate, you're certainly not changing any
> semantics by leaving them all as NullClient, so this patch can't be
> more wrong than before.
Signed-off-by: Jamey Sharp <jamey@minilop.net>
Reviewed-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'mi/miwideline.c')
-rw-r--r-- | mi/miwideline.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/mi/miwideline.c b/mi/miwideline.c index 57dda2202..c54e2deb1 100644 --- a/mi/miwideline.c +++ b/mi/miwideline.c @@ -137,7 +137,7 @@ miFillPolyHelper (DrawablePtr pDrawable, GCPtr pGC, unsigned long pixel, if (pixel != oldPixel) { XID tmpPixel = (XID)pixel; - DoChangeGC (pGC, GCForeground, &tmpPixel, FALSE); + dixChangeGC (NullClient, pGC, GCForeground, &tmpPixel, NULL); ValidateGC (pDrawable, pGC); } } @@ -233,7 +233,7 @@ miFillPolyHelper (DrawablePtr pDrawable, GCPtr pGC, unsigned long pixel, free(pptInit); if (pixel != oldPixel) { - DoChangeGC (pGC, GCForeground, &oldPixel, FALSE); + dixChangeGC (NullClient, pGC, GCForeground, &oldPixel, NULL); ValidateGC (pDrawable, pGC); } } @@ -271,13 +271,13 @@ miFillRectPolyHelper ( if (pixel != oldPixel) { XID tmpPixel = (XID)pixel; - DoChangeGC (pGC, GCForeground, &tmpPixel, FALSE); + dixChangeGC (NullClient, pGC, GCForeground, &tmpPixel, NULL); ValidateGC (pDrawable, pGC); } (*pGC->ops->PolyFillRect) (pDrawable, pGC, 1, &rect); if (pixel != oldPixel) { - DoChangeGC (pGC, GCForeground, &oldPixel, FALSE); + dixChangeGC (NullClient, pGC, GCForeground, &oldPixel, NULL); ValidateGC (pDrawable, pGC); } } @@ -1120,7 +1120,7 @@ miLineArc ( if (pixel != oldPixel) { XID tmpPixel = (XID)pixel; - DoChangeGC(pGC, GCForeground, &tmpPixel, FALSE); + dixChangeGC(NullClient, pGC, GCForeground, &tmpPixel, NULL); ValidateGC (pDraw, pGC); } } @@ -1152,7 +1152,7 @@ miLineArc ( free(points); if (pixel != oldPixel) { - DoChangeGC(pGC, GCForeground, &oldPixel, FALSE); + dixChangeGC(NullClient, pGC, GCForeground, &oldPixel, NULL); ValidateGC (pDraw, pGC); } } @@ -1571,14 +1571,14 @@ miCleanupSpanData (DrawablePtr pDrawable, GCPtr pGC, SpanDataPtr spanData) oldPixel = pGC->fgPixel; if (pixel != oldPixel) { - DoChangeGC (pGC, GCForeground, &pixel, FALSE); + dixChangeGC (NullClient, pGC, GCForeground, &pixel, NULL); ValidateGC (pDrawable, pGC); } miFillUniqueSpanGroup (pDrawable, pGC, &spanData->bgGroup); miFreeSpanGroup (&spanData->bgGroup); if (pixel != oldPixel) { - DoChangeGC (pGC, GCForeground, &oldPixel, FALSE); + dixChangeGC (NullClient, pGC, GCForeground, &oldPixel, NULL); ValidateGC (pDrawable, pGC); } } |