aboutsummaryrefslogtreecommitdiff
path: root/terminal.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-04-23 09:54:03 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-04-23 09:54:03 +0000
commit0b2006ecd534773cf5a416894fca40a85bd97e25 (patch)
tree88a05748c1a6a908655358285781066b32096014 /terminal.c
parentmeson: we now require fcft 2.0.x (diff)
term: fcft: max/space advance fields have been renamed
Diffstat (limited to 'terminal.c')
-rw-r--r--terminal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/terminal.c b/terminal.c
index dc5100ca..252dcffd 100644
--- a/terminal.c
+++ b/terminal.c
@@ -521,8 +521,8 @@ term_set_fonts(struct terminal *term, struct fcft_font *fonts[static 4])
term->fonts[i] = fonts[i];
}
- term->cell_width = term->fonts[0]->space_x_advance > 0
- ? term->fonts[0]->space_x_advance : term->fonts[0]->max_x_advance;
+ term->cell_width = term->fonts[0]->space_advance.x > 0
+ ? term->fonts[0]->space_advance.x : term->fonts[0]->max_advance.x;
term->cell_height = max(term->fonts[0]->height,
term->fonts[0]->ascent + term->fonts[0]->descent);
LOG_INFO("cell width=%d, height=%d", term->cell_width, term->cell_height);