From: Holger Schemel Date: Mon, 14 Oct 2024 23:47:43 +0000 (+0200) Subject: minor change X-Git-Tag: 4.4.0.0-test-4~123 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=35ed1a556fb5f74835a38cef50d52e388cf27afc;p=rocksndiamonds.git minor change --- 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); }