Default to graphical mode for the menu

This commit is contained in:
mintsuki 2020-09-19 15:43:59 +02:00
parent d3bd628243
commit 6c0ba4104f
2 changed files with 3 additions and 6 deletions

Binary file not shown.

View File

@ -19,10 +19,9 @@ char *menu(void) {
char buf[16];
if (config_get_value(buf, 0, 16, "GRAPHICS")) {
if (!strcmp(buf, "on")) {
term_vbe();
}
// If there is no TEXTMODE config key or the value is not "on", enable graphics
if (config_get_value(buf, 0, 16, "TEXTMODE") == NULL || strcmp(buf, "on")) {
term_vbe();
}
int timeout;
@ -91,7 +90,6 @@ refresh:
}
}
clear(true);
term_textmode();
return cmdline;
case 'e':
config_set_entry(selected_entry);
@ -104,7 +102,6 @@ refresh:
print("\n\n> ");
gets(cmdline, cmdline, CMDLINE_MAX);
clear(true);
term_textmode();
return cmdline;
}
}