mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-18 05:34:02 -04:00
term: cache font baseline
No need to redo the calculation for every single cell we render, every frame...
This commit is contained in:
parent
34aa979f46
commit
4449177517
4 changed files with 12 additions and 9 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue