diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2023-10-10 12:23:33 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2023-10-10 12:23:33 +0000 |
| commit | 4449177517c2d96857483acbc8afd7438fcdfadd (patch) | |
| tree | 16ca700c8bb42ab78f141467c811fdf24107e0b5 /terminal.h | |
| parent | term_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 'terminal.h')
| -rw-r--r-- | terminal.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -406,6 +406,7 @@ struct terminal { bool font_is_sized_by_dpi; int16_t font_x_ofs; int16_t font_y_ofs; + int16_t font_baseline; enum fcft_subpixel font_subpixel; struct { |
