From: Holger Schemel Date: Sat, 19 Mar 2022 09:26:11 +0000 (+0100) Subject: changed using always the same width for high score list in hall of fame X-Git-Tag: 4.3.2.0~68 X-Git-Url: https://git.artsoft.org/rocksndiamonds.git/?a=commitdiff_plain;h=0dad0e3343ecf62f14171b46d266b5fe3fc24f87;p=rocksndiamonds.git changed using always the same width for high score list in hall of fame --- diff --git a/src/screens.c b/src/screens.c index 7d4a2282..f62d84fb 100644 --- a/src/screens.c +++ b/src/screens.c @@ -4907,8 +4907,10 @@ static void drawChooseTreeText(TreeInfo *ti, int y, boolean active) { int num_entries = numTreeInfoInGroup(ti); boolean scrollbar_needed = (num_entries > NUM_MENU_ENTRIES_ON_SCREEN); + boolean scrollbar_always = (game_status == GAME_MODE_SCORES); + boolean scrollbar_keep_space = (scrollbar_needed || scrollbar_always); int scrollbar_xpos = SC_SCROLLBAR_XPOS + menu.scrollbar_xoffset; - int screen_width = (scrollbar_needed ? scrollbar_xpos : SXSIZE); + int screen_width = (scrollbar_keep_space ? scrollbar_xpos : SXSIZE); int first_entry = ti->cl_first; int entry_pos = first_entry + y; TreeInfo *node_first = getTreeInfoFirstGroupEntry(ti);