From c3e0b26b0f35f18c3f7f0159411cc0c6344b1010 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Mon, 27 Mar 2023 09:39:49 +0200 Subject: [PATCH] removed unused definitions for menu list entry size --- build-scripts/create_element_defs.pl | 2 +- src/files.c | 7 +++---- src/main.h | 1 - 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/build-scripts/create_element_defs.pl b/build-scripts/create_element_defs.pl index 59d1a4d8..b75d86ac 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|list_entry_size)$/) + if ($var =~ /^menu.(draw_[xy]offset|list_size)$/) { $var .= "[GFX_SPECIAL_ARG_DEFAULT]"; } diff --git a/src/files.c b/src/files.c index cb1a9f77..b162b968 100644 --- a/src/files.c +++ b/src/files.c @@ -12456,10 +12456,9 @@ 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.list_entry_size", &menu.list_entry_size[i] } + { "menu.draw_xoffset", &menu.draw_xoffset[i] }, + { "menu.draw_yoffset", &menu.draw_yoffset[i] }, + { "menu.list_size", &menu.list_size[i] } }; for (j = 0; j < ARRAY_SIZE(menu_config); j++) diff --git a/src/main.h b/src/main.h index b8145887..5ccf7389 100644 --- a/src/main.h +++ b/src/main.h @@ -2883,7 +2883,6 @@ 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]; -- 2.34.1