aboutsummaryrefslogtreecommitdiff
path: root/box-drawing.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2023-10-10 12:23:33 +0000
committerDaniel Eklöf <daniel@ekloef.se>2023-10-10 12:23:33 +0000
commit4449177517c2d96857483acbc8afd7438fcdfadd (patch)
tree16ca700c8bb42ab78f141467c811fdf24107e0b5 /box-drawing.c
parentterm_font_baseline(): only center glyph when a custom line-height is being used (diff)
term: cache font baseline
No need to redo the calculation for every single cell we render, every frame...
Diffstat (limited to 'box-drawing.c')
-rw-r--r--box-drawing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/box-drawing.c b/box-drawing.c
index 07f415cb..cf351b31 100644
--- a/box-drawing.c
+++ b/box-drawing.c
@@ -3011,7 +3011,7 @@ box_drawing(const struct terminal *term, char32_t wc)
.cols = 1,
.pix = buf.pix,
.x = -term->font_x_ofs,
- .y = term_font_baseline(term),
+ .y = term->font_baseline,
.width = width,
.height = height,
.advance = {