aboutsummaryrefslogtreecommitdiffstats
path: root/com32/menu/menumain.c
diff options
context:
space:
mode:
Diffstat (limited to 'com32/menu/menumain.c')
-rw-r--r--com32/menu/menumain.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/com32/menu/menumain.c b/com32/menu/menumain.c
index 82f0018c..67deac32 100644
--- a/com32/menu/menumain.c
+++ b/com32/menu/menumain.c
@@ -1072,7 +1072,7 @@ static const char *run_menu(void)
return cmdline;
}
-int menu_main(int argc, char *argv[])
+int main(int argc, char *argv[])
{
const char *cmdline;
struct menu *m;
@@ -1081,14 +1081,20 @@ int menu_main(int argc, char *argv[])
(void)argc;
+ parse_configs(argv + 1);
+
+ /*
+ * We don't start the console until we have parsed the configuration
+ * file, since the configuration file might impact the console
+ * configuration, e.g. MENU RESOLUTION.
+ */
+ start_console();
if (getscreensize(1, &rows, &cols)) {
/* Unknown screen size? */
rows = 24;
cols = 80;
}
- parse_configs(argv + 1);
-
/* Some postprocessing for all menus */
for (m = menu_list; m; m = m->next) {
if (!m->mparm[P_WIDTH])