mirror of
https://github.com/LukeSmithxyz/st.git
synced 2024-11-22 07:15:59 +01:00
Simplify xunloadfonts.
This commit is contained in:
parent
74962bf566
commit
0e439e5624
1 changed files with 2 additions and 6 deletions
8
st.c
8
st.c
|
@ -2993,13 +2993,9 @@ xunloadfont(Font *f) {
|
|||
|
||||
void
|
||||
xunloadfonts(void) {
|
||||
int i;
|
||||
|
||||
/* Free the loaded fonts in the font cache. */
|
||||
for(i = 0; i < frclen; i++) {
|
||||
XftFontClose(xw.dpy, frc[i].font);
|
||||
}
|
||||
frclen = 0;
|
||||
while(frclen > 0)
|
||||
XftFontClose(xw.dpy, frc[--frclen].font);
|
||||
|
||||
xunloadfont(&dc.font);
|
||||
xunloadfont(&dc.bfont);
|
||||
|
|
Loading…
Reference in a new issue