term: Fix bug introduced by last commit

This commit is contained in:
mintsuki 2021-11-20 23:05:56 +01:00
parent 89fbcbe71b
commit 237a3b3152

View File

@ -77,12 +77,23 @@ void term_notready(void) {
term_cols = 100;
#if bios == 1
{
if (current_video_mode != -1) {
struct rm_regs r = {0};
r.eax = 0x0003;
rm_int(0x10, &r, &r);
current_video_mode = -1;
}
volatile uint16_t *vmem = (volatile uint16_t *)0xb8000;
for (size_t i = 0; i < 80*25; i++) {
vmem[i] = 0x0720;
}
outb(0x3d4, 0x0a);
outb(0x3d5, 0x20);
}
#endif
}