added definitions for menu list entry size (not used yet)
authorHolger Schemel <info@artsoft.org>
Sun, 26 Mar 2023 14:02:16 +0000 (16:02 +0200)
committerHolger Schemel <info@artsoft.org>
Sun, 26 Mar 2023 14:40:14 +0000 (16:40 +0200)
build-scripts/create_element_defs.pl
src/conf_gfx.c
src/files.c
src/main.h

index b75d86ac79c6752c99a3068df90604f530f9a6c4..59d1a4d8076c81e11050ce18763a07a8eeddfb43 100755 (executable)
@@ -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]";
            }
index 3f64eeca6aa418ab88fe76bde8c16d96d6231463..b246940475146e69a6372de525f29674459a5ff3 100644 (file)
@@ -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"                    },
index 5d191f027233d559a855fb16b5d50b00a2d19e25..cb1a9f77d277ee9177c0271771081f09430f1b93 100644 (file)
@@ -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++)
index 22e63d7f2695290000fb88c15598ea9525521e40..b81458875913219cda9e595784edf6bc824da399 100644 (file)
@@ -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];