Browse Source

Simplify xunloadfonts.

master
noname 11 years ago
committed by Roberto E. Vargas Caballero
parent
commit
0e439e5624
1 changed files with 2 additions and 6 deletions
  1. +2
    -6
      st.c

+ 2
- 6
st.c View File

@ -2993,13 +2993,9 @@ xunloadfont(Font *f) {
void void
xunloadfonts(void) { xunloadfonts(void) {
int i;
/* Free the loaded fonts in the font cache. */ /* 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.font);
xunloadfont(&dc.bfont); xunloadfont(&dc.bfont);


Loading…
Cancel
Save