From 438b2ded66655a40eb4183bef05d434a7ab12e8a Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Tue, 15 Oct 2024 02:08:43 +0200 Subject: [PATCH] fixed font for level info screen --- src/screens.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/screens.c b/src/screens.c index c4306715..850a24e5 100644 --- a/src/screens.c +++ b/src/screens.c @@ -4154,15 +4154,15 @@ static void DrawInfoScreen_GenericScreen(int screen_nr, int num_screens, int use // if chars set to "-1", automatically determine by text and font width if (tmi->chars == -1) - tmi->chars = tmi->width / getFontWidth(tmi->font); + tmi->chars = tmi->width / getFontWidth(font); else - tmi->width = tmi->chars * getFontWidth(tmi->font); + tmi->width = tmi->chars * getFontWidth(font); // if lines set to "-1", automatically determine by text and font height if (tmi->lines == -1) - tmi->lines = tmi->height / getFontHeight(tmi->font); + tmi->lines = tmi->height / getFontHeight(font); else - tmi->height = tmi->lines * getFontHeight(tmi->font); + tmi->height = tmi->lines * getFontHeight(font); FreeWrappedText(wrapped_text); -- 2.34.1