Rip out and burn the HASH_* stuff. We don't need a SPLAY tree for one font.

makes the code a lot simpler. While here rearrange the font handling functions
to be less shit.

ok and help okan@.
This commit is contained in:
oga
2008-06-15 02:47:46 +00:00
parent 96d7310b4a
commit 07cd0b1ac5
8 changed files with 56 additions and 222 deletions

11
conf.c
View File

@@ -50,6 +50,15 @@ conf_cmd_add(struct conf *c, char *image, char *label, int flags)
}
}
void
conf_font(struct conf *c)
{
struct screen_ctx *sc = screen_current();
c->DefaultFont = font_make(sc, Conf.DefaultFontName);
c->FontHeight = font_ascent() + font_descent() + 1;
}
int
conf_changed(char *path)
{
@@ -78,7 +87,7 @@ conf_reload(struct conf *c)
return;
}
DefaultFont = font_getx(Curscreen, c->DefaultFontName);
conf_font(c);
}
void