diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-08-31 17:02:10 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-08-31 17:02:10 +0000 |
| commit | 6e86a42c4b468c6c58cf1acf6b288a250543db98 (patch) | |
| tree | 30861755735e774cf961e59c77b5eed7c216f0ac /render/mask.c | |
| parent | f90167d8b5d8bd082fb961590375c8607eaec8e0 (diff) | |
use RrColorGC
Diffstat (limited to 'render/mask.c')
| -rw-r--r-- | render/mask.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/render/mask.c b/render/mask.c index 60e89d48..d0f375bc 100644 --- a/render/mask.c +++ b/render/mask.c @@ -37,16 +37,16 @@ void RrPixmapMaskDraw(Pixmap p, const RrTextureMask *m, const RrRect *area) if (x < 0) x = 0; if (y < 0) y = 0; - XSetClipMask(RrDisplay(m->mask->inst), m->color->gc, m->mask->mask); - XSetClipOrigin(RrDisplay(m->mask->inst), m->color->gc, x, y); + XSetClipMask(RrDisplay(m->mask->inst), RrColorGC(m->color), m->mask->mask); + XSetClipOrigin(RrDisplay(m->mask->inst), RrColorGC(m->color), x, y); /* fill in the clipped region */ - XFillRectangle(RrDisplay(m->mask->inst), p, m->color->gc, x, y, + XFillRectangle(RrDisplay(m->mask->inst), p, RrColorGC(m->color), x, y, x + m->mask->width, y + m->mask->height); /* unset the clip region */ - XSetClipMask(RrDisplay(m->mask->inst), m->color->gc, None); - XSetClipOrigin(RrDisplay(m->mask->inst), m->color->gc, 0, 0); + XSetClipMask(RrDisplay(m->mask->inst), RrColorGC(m->color), None); + XSetClipOrigin(RrDisplay(m->mask->inst), RrColorGC(m->color), 0, 0); } RrPixmapMask *RrPixmapMaskCopy(const RrPixmapMask *src) |
