From 191cad4c3989ca956f49ffc879296c84b508676d Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Sun, 26 Mar 2023 16:02:16 +0200 Subject: [PATCH] added definitions for menu list entry size (not used yet) --- build-scripts/create_element_defs.pl | 2 +- src/conf_gfx.c | 2 ++ src/files.c | 10 ++++++---- src/main.h | 2 ++ 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/build-scripts/create_element_defs.pl b/build-scripts/create_element_defs.pl index b75d86ac..59d1a4d8 100755 --- a/build-scripts/create_element_defs.pl +++ b/build-scripts/create_element_defs.pl @@ -2577,7 +2577,7 @@ sub print_image_config_vars $var = $1 . "[GFX_SPECIAL_ARG_DEFAULT]" . $3; } - if ($var =~ /^menu.(draw_[xy]offset|list_size)$/) + if ($var =~ /^menu.(draw_[xy]offset|list_size|list_entry_size)$/) { $var .= "[GFX_SPECIAL_ARG_DEFAULT]"; } diff --git a/src/conf_gfx.c b/src/conf_gfx.c index 3f64eeca..b2469404 100644 --- a/src/conf_gfx.c +++ b/src/conf_gfx.c @@ -8082,6 +8082,8 @@ struct ConfigInfo image_config[] = { "menu.list_size.INFO[ELEMENTS]", "-1" }, { "menu.list_size.SETUP", "-1" }, + { "menu.list_entry_size.INFO[ELEMENTS]", "-1" }, + { "menu.left_spacing.SCOREINFO", "16" }, { "menu.left_spacing.INFO", "16" }, { "menu.left_spacing.INFO[TITLE]", "16" }, diff --git a/src/files.c b/src/files.c index 5d191f02..cb1a9f77 100644 --- a/src/files.c +++ b/src/files.c @@ -12456,9 +12456,10 @@ static void LoadMenuDesignSettingsFromFilename(char *filename) { struct TokenIntPtrInfo menu_config[] = { - { "menu.draw_xoffset", &menu.draw_xoffset[i] }, - { "menu.draw_yoffset", &menu.draw_yoffset[i] }, - { "menu.list_size", &menu.list_size[i] } + { "menu.draw_xoffset", &menu.draw_xoffset[i] }, + { "menu.draw_yoffset", &menu.draw_yoffset[i] }, + { "menu.list_size", &menu.list_size[i] }, + { "menu.list_entry_size", &menu.list_entry_size[i] } }; for (j = 0; j < ARRAY_SIZE(menu_config); j++) @@ -12479,7 +12480,8 @@ static void LoadMenuDesignSettingsFromFilename(char *filename) { { "menu.draw_xoffset.INFO", &menu.draw_xoffset_info[i] }, { "menu.draw_yoffset.INFO", &menu.draw_yoffset_info[i] }, - { "menu.list_size.INFO", &menu.list_size_info[i] } + { "menu.list_size.INFO", &menu.list_size_info[i] }, + { "menu.list_entry_size.INFO", &menu.list_entry_size_info[i] } }; for (j = 0; j < ARRAY_SIZE(menu_config); j++) diff --git a/src/main.h b/src/main.h index 22e63d7f..b8145887 100644 --- a/src/main.h +++ b/src/main.h @@ -2883,6 +2883,8 @@ struct MenuInfo int list_size[NUM_SPECIAL_GFX_ARGS]; int list_size_info[NUM_SPECIAL_GFX_INFO_ARGS]; + int list_entry_size[NUM_SPECIAL_GFX_ARGS]; + int list_entry_size_info[NUM_SPECIAL_GFX_INFO_ARGS]; int left_spacing[NUM_SPECIAL_GFX_ARGS]; int left_spacing_info[NUM_SPECIAL_GFX_INFO_ARGS]; -- 2.34.1