From 42af50b090f03e920368de3fd6872cf5b62c918e Mon Sep 17 00:00:00 2001 From: Jack Jamison Date: Fri, 17 Oct 2025 19:58:35 -0400 Subject: fix spacing and sizing and shit --- font.c | 1 + 1 file changed, 1 insertion(+) (limited to 'font.c') diff --git a/font.c b/font.c index 569d283..c085d1d 100644 --- a/font.c +++ b/font.c @@ -148,5 +148,6 @@ int atlas_get_strwidth(client_state* state, const char* str) { void atlas_calc_item_widths(client_state* state) { array_for_all(item_t, item, state->items) { item->pixel_len = atlas_get_strwidth(state, item->text); + state->required_width = MAX(state->required_width, item->pixel_len + state->line_height / 2.0f); } } -- cgit v1.2.3