Introduction
Introduction Statistics Contact Development Disclaimer Help
tSimplify xunloadfonts. - st - [fork] customized build of st, the simple termin…
git clone git://src.adamsgaard.dk/st
Log
Files
Refs
README
LICENSE
---
commit 0e439e5624113233525266c2a104792f2c33b7e3
parent 74962bf56636e608f0ee35f2076bc6b48923119d
Author: noname <[email protected]>
Date: Mon, 28 Apr 2014 02:41:17 +0400
Simplify xunloadfonts.
Diffstat:
M st.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/st.c b/st.c
t@@ -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);
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.