{ "menu.list_size.LEVELNR", "-1" },
{ "menu.list_size.SCORES", "-1" },
{ "menu.list_size.INFO", "-1" },
+ { "menu.list_size.INFO[ELEMENTS]", "-1" },
{ "menu.list_size.SETUP", "-1" },
{ "main.button.name.x", "0" },
menu.draw_xoffset_info[i] = get_integer_from_string(value_1);
if (value_2 != NULL)
menu.draw_yoffset_info[i] = get_integer_from_string(value_2);
+
+ if (i == GFX_SPECIAL_ARG_INFO_ELEMENTS)
+ {
+ char *value_1 = getHashEntry(setup_file_hash, "menu.list_size.INFO");
+
+ if (value_1 != NULL)
+ menu.list_size_info[i] = get_integer_from_string(value_1);
+ }
}
/* special case: initialize with default values that may be overwritten */
int scrollbar_xoffset;
int list_size[NUM_SPECIAL_GFX_ARGS];
+ int list_size_info[NUM_SPECIAL_GFX_INFO_ARGS];
struct TitleFadingInfo enter_menu;
struct TitleFadingInfo leave_menu;
MENU_SCREEN_INFO_YSTART2 - \
TILEY / 2)
#define MAX_INFO_ELEMENTS_ON_SCREEN 128
-#define NUM_INFO_ELEMENTS_ON_SCREEN MIN(MENU_SCREEN_INFO_YSIZE / \
- MENU_SCREEN_INFO_YSTEP, \
- MAX_INFO_ELEMENTS_ON_SCREEN)
+#define STD_INFO_ELEMENTS_ON_SCREEN (MENU_SCREEN_INFO_YSIZE / \
+ MENU_SCREEN_INFO_YSTEP)
+#define NUM_INFO_ELEMENTS_FROM_CONF \
+ (menu.list_size_info[GFX_SPECIAL_ARG_INFO_ELEMENTS] > 0 ? \
+ menu.list_size_info[GFX_SPECIAL_ARG_INFO_ELEMENTS] : \
+ MAX_MENU_ENTRIES_ON_SCREEN)
+#define NUM_INFO_ELEMENTS_ON_SCREEN MIN(MIN(STD_INFO_ELEMENTS_ON_SCREEN, \
+ MAX_INFO_ELEMENTS_ON_SCREEN), \
+ NUM_INFO_ELEMENTS_FROM_CONF)
#define MAX_MENU_ENTRIES_ON_SCREEN (SCR_FIELDY - MENU_SCREEN_START_YPOS)
#define MAX_MENU_TEXT_LENGTH_BIG 13
#define MAX_MENU_TEXT_LENGTH_MEDIUM (MAX_MENU_TEXT_LENGTH_BIG * 2)