textmode: Load notready() *before* setting term_{cols,rows}

This commit is contained in:
mintsuki 2022-09-05 03:10:48 +02:00
parent 87d0dfa699
commit 5566278736

View File

@ -181,6 +181,8 @@ void term_textmode(void) {
return;
}
term_notready();
init_vga_textmode(&term_rows, &term_cols, true);
if (serial) {
@ -190,8 +192,6 @@ void term_textmode(void) {
term_reinit();
term_notready();
raw_putchar = text_putchar;
clear = text_clear;
enable_cursor = text_enable_cursor;