From 35ed1a556fb5f74835a38cef50d52e388cf27afc Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Tue, 15 Oct 2024 01:47:43 +0200 Subject: [PATCH] minor change --- src/screens.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/screens.c b/src/screens.c index 9843c6ae..66e3a0f7 100644 --- a/src/screens.c +++ b/src/screens.c @@ -4117,15 +4117,14 @@ static void DrawInfoScreen_GenericScreen(int screen_nr, int num_screens, int use int height = MENU_SCREEN_INFO_YBOTTOM - MENU_SCREEN_INFO_YSTART; int chars = width / font_width; int lines = height / font_height; - int padx = (width - chars * font_width) / 2; int line_spacing = getMenuTextSpacing(spacing_line, font_text); - int x = mSX + padx; - int y = mSY + MENU_SCREEN_INFO_YSTART + getHeadlineSpacing(); + int x = (width - chars * font_width) / 2; + int y = MENU_SCREEN_INFO_YSTART + getHeadlineSpacing(); boolean autowrap = FALSE; boolean centered = TRUE; boolean parse_comments = TRUE; - DrawTextFile(x, y, + DrawTextFile(mSX + x, mSY + y, filename, font_text, chars, -1, lines, -1, -1, -1, line_spacing, -1, autowrap, centered, parse_comments); } -- 2.34.1