diff options
author | Jamey Sharp <jamey@minilop.net> | 2010-05-08 14:10:51 -0700 |
---|---|---|
committer | Jamey Sharp <jamey@minilop.net> | 2010-05-13 17:13:48 -0700 |
commit | e2929db7b737413cf93fbebdf4d15abdfebff05c (patch) | |
tree | b32ddbf9c163f8eb814ebdaa4b22301b82af0906 /mi/miexpose.c | |
parent | 95728ca09d45afc84c8d1828c09c6b6725f1a58d (diff) |
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>
Diffstat (limited to 'mi/miexpose.c')
-rw-r--r-- | mi/miexpose.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/mi/miexpose.c b/mi/miexpose.c index b4d489a7d..03ce896aa 100644 --- a/mi/miexpose.c +++ b/mi/miexpose.c @@ -683,17 +683,18 @@ miPaintWindow(WindowPtr pWin, RegionPtr prgn, int what) void miClearDrawable(DrawablePtr pDraw, GCPtr pGC) { - XID fg = pGC->fgPixel; - XID bg = pGC->bgPixel; + ChangeGCVal fg, bg; xRectangle rect; + fg.val = pGC->fgPixel; + bg.val = pGC->bgPixel; rect.x = 0; rect.y = 0; rect.width = pDraw->width; rect.height = pDraw->height; - dixChangeGC(NullClient, pGC, GCForeground, &bg, NULL); + dixChangeGC(NullClient, pGC, GCForeground, NULL, &bg); ValidateGC(pDraw, pGC); (*pGC->ops->PolyFillRect)(pDraw, pGC, 1, &rect); - dixChangeGC(NullClient, pGC, GCForeground, &fg, NULL); + dixChangeGC(NullClient, pGC, GCForeground, NULL, &fg); ValidateGC(pDraw, pGC); } |