diff options
author | okan <okan> | 2013-05-20 20:21:04 +0000 |
---|---|---|
committer | okan <okan> | 2013-05-20 20:21:04 +0000 |
commit | 270df196ac17363536c44fe342b4e71e1c8450e3 (patch) | |
tree | 73f285a3f099b8b96d5d7e8b8e9b297c01613842 /xutil.c | |
parent | e14123210a7773a0fda562eb367d71482c872e60 (diff) | |
download | cwm-270df196ac17363536c44fe342b4e71e1c8450e3.tar.gz cwm-270df196ac17363536c44fe342b4e71e1c8450e3.tar.xz cwm-270df196ac17363536c44fe342b4e71e1c8450e3.zip |
- 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 'xutil.c')
-rw-r--r-- | xutil.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/xutil.c b/xutil.c index 3e2b36c..d5055f2 100644 --- a/xutil.c +++ b/xutil.c @@ -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)); } |