X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fscreens.c;h=f62d84fbe1cdefadf8fddd874d0c852be3c2f035;hb=0dad0e3343ecf62f14171b46d266b5fe3fc24f87;hp=7d4a22822bacaf43588209688d2c3cc186166433;hpb=cd4c45c4456c67590b012faeaeb73132bda4d4ed;p=rocksndiamonds.git 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);