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
1 changed files with 2 additions and 2 deletions

View File

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