aboutsummaryrefslogtreecommitdiffstats
path: root/xutil.c
diff options
context:
space:
mode:
authorokan2013-05-20 20:21:04 +0000
committerokan2013-05-20 20:21:04 +0000
commita4fa4ac623b54b25b58caaba5b717165be6915bb (patch)
tree16391330bcca29b3937500ccd6fb18ebe57b653f /xutil.c
parente9251684bd2c326cd3a874f932ccbca1c93b4e2d (diff)
downloadcwm-a4fa4ac623b54b25b58caaba5b717165be6915bb.tar.gz
- configure menuwin with the screen, then create the xft drawable using
the menu window since that's the only place on which we draw - elminate the need to change the drawable on every font draw
Diffstat (limited to '')
-rw-r--r--xutil.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/xutil.c b/xutil.c
index e8b8549..85f2f39 100644
--- a/xutil.c
+++ b/xutil.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: xutil.c,v 1.63 2013/05/19 23:38:21 okan Exp $
+ * $OpenBSD: xutil.c,v 1.64 2013/05/20 20:21:04 okan Exp $
*/
#include <sys/param.h>
@@ -442,10 +442,8 @@ xu_xft_width(XftFont *xftfont, const char *text, int len)
}
void
-xu_xft_draw(struct screen_ctx *sc, const char *text,
- Drawable d, int color, int x, int y)
+xu_xft_draw(struct screen_ctx *sc, const char *text, int color, int x, int y)
{
- XftDrawChange(sc->xftdraw, d);
XftDrawStringUtf8(sc->xftdraw, &sc->xftcolor[color], sc->xftfont,
x, y, (const FcChar8*)text, strlen(text));
}