diff options
| author | noname <noname@inventati.org> | 2014-04-28 02:41:17 +0400 |
|---|---|---|
| committer | Roberto E. Vargas Caballero <k0ga@shike2.com> | 2014-04-28 18:48:09 +0200 |
| commit | 0e439e5624113233525266c2a104792f2c33b7e3 (patch) | |
| tree | 389e337141dafe8703d2986de7fafe4b104ec6ee | |
| parent | 74962bf56636e608f0ee35f2076bc6b48923119d (diff) | |
| download | st-0e439e5624113233525266c2a104792f2c33b7e3.tar.gz st-0e439e5624113233525266c2a104792f2c33b7e3.zip | |
Simplify xunloadfonts.
| -rw-r--r-- | st.c | 8 |
1 files changed, 2 insertions, 6 deletions
| @@ -2993,13 +2993,9 @@ xunloadfont(Font *f) { | |||
| 2993 | 2993 | ||
| 2994 | void | 2994 | void |
| 2995 | xunloadfonts(void) { | 2995 | xunloadfonts(void) { |
| 2996 | int i; | ||
| 2997 | |||
| 2998 | /* Free the loaded fonts in the font cache. */ | 2996 | /* Free the loaded fonts in the font cache. */ |
| 2999 | for(i = 0; i < frclen; i++) { | 2997 | while(frclen > 0) |
| 3000 | XftFontClose(xw.dpy, frc[i].font); | 2998 | XftFontClose(xw.dpy, frc[--frclen].font); |
| 3001 | } | ||
| 3002 | frclen = 0; | ||
| 3003 | 2999 | ||
| 3004 | xunloadfont(&dc.font); | 3000 | xunloadfont(&dc.font); |
| 3005 | xunloadfont(&dc.bfont); | 3001 | xunloadfont(&dc.bfont); |
