From: Holger Schemel Date: Tue, 15 Oct 2024 00:08:43 +0000 (+0200) Subject: fixed font for level info screen X-Git-Tag: 4.4.0.0-test-4~120 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=438b2ded66655a40eb4183bef05d434a7ab12e8a;p=rocksndiamonds.git fixed font for level info screen --- 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);