Patch by David Powell:

* Turn off text cursor when switching to text mode.
* Minor cleanup.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26222 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2008-07-02 15:04:10 +00:00
parent 321ee820ea
commit 119b7dccf0
+7 -2
View File
@@ -587,7 +587,7 @@ set_vga_mode(void)
{
// sets 640x480 16 colors graphics mode
bios_regs regs;
regs.eax = 0x12;
regs.eax = 0x0012;
call_bios(0x10, &regs);
}
@@ -597,7 +597,12 @@ set_text_mode(void)
{
// sets 80x25 text console
bios_regs regs;
regs.eax = 3;
regs.eax = 0x0003;
call_bios(0x10, &regs);
// turns off text cursor
regs.eax = 0x0100;
regs.ecx = 0x2000;
call_bios(0x10, &regs);
}