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:
11
conf.c
11
conf.c
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user