From 4449177517c2d96857483acbc8afd7438fcdfadd Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Tue, 10 Oct 2023 14:23:33 +0200 Subject: term: cache font baseline No need to redo the calculation for every single cell we render, every frame... --- terminal.h | 1 + 1 file changed, 1 insertion(+) (limited to 'terminal.h') 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 { -- cgit v1.3