wip
This commit is contained in:
1 parent
63795bc447
commit
da0c8a0183
3 files changed
+75
-184
No files matched your search
@@ -114,13 +114,9 @@ static Fnt * xfont_create(Drw *drw, const char *fontname, FcPattern *fontpattern
|
||||
return font;
|
||||
}
|
||||
|
||||
static void
|
||||
xfont_free(Fnt *font)
|
||||
{
|
||||
if (!font)
|
||||
return;
|
||||
if (font->pattern)
|
||||
FcPatternDestroy(font->pattern);
|
||||
static void xfont_free(Fnt *font) {
|
||||
if (!font) return;
|
||||
if (font->pattern) FcPatternDestroy(font->pattern);
|
||||
XftFontClose(font->dpy, font->xfont);
|
||||
free(font);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user