summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2008-03-24 12:10:19 -0400
committerAdam Jackson <ajax@redhat.com>2008-03-24 12:10:19 -0400
commit541c6194d986e7849ee9541a9fd60b0724647a44 (patch)
treebe1541079448bc0e8999c2bd42fea84b0a5558ff /src
parent8661a88789dce4fe06d45faec70f8e74834abdd6 (diff)
downloadxorg-lib-libXft-541c6194d986e7849ee9541a9fd60b0724647a44.tar.gz
Bug #14232: Fix XftDrawRect when Render not supported.
Diffstat (limited to 'src')
-rw-r--r--src/xftdraw.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/xftdraw.c b/src/xftdraw.c
index 775815d..46e3f43 100644
--- a/src/xftdraw.c
+++ b/src/xftdraw.c
@@ -807,7 +807,10 @@ XftDrawRect (XftDraw *draw,
}
else if (_XftDrawCorePrepare (draw, color))
{
- XftRectCore (draw, color, x, y, width, height);
+ /* note: not XftRectCore() */
+ XSetForeground (draw->dpy, draw->core.gc, color->pixel);
+ XFillRectangle (draw->dpy, draw->drawable, draw->core.gc,
+ x, y, width, height);
}
}