term: cache font baseline

No need to redo the calculation for every single cell we render,
every frame...
This commit is contained in:
Daniel Eklöf 2023-10-10 14:23:33 +02:00
parent 34aa979f46
commit 4449177517
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
4 changed files with 12 additions and 9 deletions

View file

@ -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 {