- 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
This commit is contained in:
okan
2013-05-20 20:21:04 +00:00
parent e14123210a
commit 270df196ac
6 changed files with 16 additions and 24 deletions

View File

@@ -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));
}