From: Holger Schemel Date: Thu, 14 Apr 2022 23:19:40 +0000 (+0200) Subject: added using left and right spacing on score info page X-Git-Tag: 4.3.2.0~10 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=b07cd912a0fad6989ecc8f4ad9fba889535e9a02;p=rocksndiamonds.git added using left and right spacing on score info page --- diff --git a/src/screens.c b/src/screens.c index 6d409c44..4937d2ce 100644 --- a/src/screens.c +++ b/src/screens.c @@ -5416,10 +5416,11 @@ static void DrawScoreInfo_Content(int entry_nr) int ystep_title = getMenuTextStep(spacing_title, font_title); int ystep_para = getMenuTextStep(spacing_para, font_text); int ystep_line = getMenuTextStep(spacing_line, font_text); + int xstart = mSX - SX + menu.left_spacing[GAME_MODE_SCOREINFO]; int ystart = mSY - SY + menu.top_spacing[GAME_MODE_SCOREINFO]; int ybottom = mSY - SY + SYSIZE - menu.bottom_spacing[GAME_MODE_SCOREINFO]; - int xstart1 = mSX - SX + 2 * xstep; - int xstart2 = mSX - SX + 13 * xstep; + int xstart1 = xstart + xstep; + int xstart2 = xstart + xstep * 12; int select_x = SX + xstart1; int select_y1, select_y2; int play_x, play_y; @@ -5429,7 +5430,7 @@ static void DrawScoreInfo_Content(int entry_nr) int font_height = getFontHeight(font_text); int tape_date_width = getTextWidth(tape_date, font_text); int pad_left = xstart2; - int pad_right = MENU_SCREEN_INFO_SPACE_RIGHT; + int pad_right = menu.right_spacing[GAME_MODE_SCOREINFO]; int max_chars_per_line = (SXSIZE - pad_left - pad_right) / font_width; int max_lines_per_text = 5; int lines;