diff options
author | arg@suckless.org <unknown> | 2007-09-19 17:33:35 +0200 |
---|---|---|
committer | arg@suckless.org <unknown> | 2007-09-19 17:33:35 +0200 |
commit | 56f9e26b7268d653afb6db82aac9bad71abde0dd (patch) | |
tree | 997d9c143e3f59a2fdedca7bb3585386796f0103 | |
parent | d094ebea968e3d08b985a754aa9df30f56f649c6 (diff) |
applied yiyus initfont fix
-rw-r--r-- | dmenu.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -298,10 +298,9 @@ initfont(const char *fontstr) { | |||
298 | if(dc.font.xfont) | 298 | if(dc.font.xfont) |
299 | XFreeFont(dpy, dc.font.xfont); | 299 | XFreeFont(dpy, dc.font.xfont); |
300 | dc.font.xfont = NULL; | 300 | dc.font.xfont = NULL; |
301 | if(!(dc.font.xfont = XLoadQueryFont(dpy, fontstr))) { | 301 | if(!(dc.font.xfont = XLoadQueryFont(dpy, fontstr)) |
302 | if(!(dc.font.xfont = XLoadQueryFont(dpy, "fixed"))) | 302 | && !(dc.font.xfont = XLoadQueryFont(dpy, "fixed"))) |
303 | eprint("error, cannot load font: '%s'\n", fontstr); | 303 | eprint("error, cannot load font: '%s'\n", fontstr); |
304 | } | ||
305 | dc.font.ascent = dc.font.xfont->ascent; | 304 | dc.font.ascent = dc.font.xfont->ascent; |
306 | dc.font.descent = dc.font.xfont->descent; | 305 | dc.font.descent = dc.font.xfont->descent; |
307 | } | 306 | } |