projects
/
rocksndiamonds.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
cd4c45c
)
changed using always the same width for high score list in hall of fame
author
Holger Schemel
<info@artsoft.org>
Sat, 19 Mar 2022 09:26:11 +0000
(10:26 +0100)
committer
Holger Schemel
<info@artsoft.org>
Sat, 19 Mar 2022 09:26:36 +0000
(10:26 +0100)
src/screens.c
patch
|
blob
|
history
diff --git
a/src/screens.c
b/src/screens.c
index 7d4a22822bacaf43588209688d2c3cc186166433..f62d84fbe1cdefadf8fddd874d0c852be3c2f035 100644
(file)
--- 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);
{
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 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);
int first_entry = ti->cl_first;
int entry_pos = first_entry + y;
TreeInfo *node_first = getTreeInfoFirstGroupEntry(ti);