aboutsummaryrefslogtreecommitdiff
path: root/terminal.h
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 /terminal.h
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 'terminal.h')
-rw-r--r--terminal.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/terminal.h b/terminal.h
index da873ae6..a8b65198 100644
--- a/terminal.h
+++ b/terminal.h
@@ -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 {