fixed diagnostic error message
This commit is contained in:
parent
796c4fb9e5
commit
e19e42adbb
2
draw.c
2
draw.c
@ -108,7 +108,7 @@ setfont(const char *fontstr) {
|
|||||||
XFreeFont(dpy, dc.font.xfont);
|
XFreeFont(dpy, dc.font.xfont);
|
||||||
dc.font.xfont = NULL;
|
dc.font.xfont = NULL;
|
||||||
if(!(dc.font.xfont = XLoadQueryFont(dpy, fontstr)))
|
if(!(dc.font.xfont = XLoadQueryFont(dpy, fontstr)))
|
||||||
eprint("error, cannot init 'fixed' font\n");
|
eprint("error, cannot load font: '%s'\n", fontstr);
|
||||||
dc.font.ascent = dc.font.xfont->ascent;
|
dc.font.ascent = dc.font.xfont->ascent;
|
||||||
dc.font.descent = dc.font.xfont->descent;
|
dc.font.descent = dc.font.xfont->descent;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user