From 541c6194d986e7849ee9541a9fd60b0724647a44 Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Mon, 24 Mar 2008 12:10:19 -0400 Subject: [PATCH] Bug #14232: Fix XftDrawRect when Render not supported. --- src/xftdraw.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); } } -- 2.22.0