fcft: update to 1.1.0

This commit is contained in:
Daniel Eklöf 2020-02-01 20:14:29 +01:00
parent d16a85699d
commit ebc7511706
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 4 additions and 4 deletions

View file

@ -67,7 +67,7 @@ conf_to_color(const struct yml_node *node)
struct font *
conf_to_font(const struct yml_node *node)
{
return font_from_name(&(const char *){yml_value_as_string(node)}, 1, NULL);
return font_from_name(1, &(const char *){yml_value_as_string(node)}, NULL);
}
struct deco *
@ -263,7 +263,7 @@ conf_to_bar(const struct yml_node *bar, enum bar_backend backend)
* and particles. This allows us to specify a default font and
* foreground color at top-level.
*/
struct font *font = font_from_name(&(const char *){"sans"}, 1, NULL);
struct font *font = font_from_name(1, &(const char *){"sans"}, NULL);
pixman_color_t foreground = {0xffff, 0xffff, 0xffff, 0xffff}; /* White */
const struct yml_node *font_node = yml_get_value(bar, "font");