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:
@@ -587,7 +587,7 @@ set_vga_mode(void)
|
|||||||
{
|
{
|
||||||
// sets 640x480 16 colors graphics mode
|
// sets 640x480 16 colors graphics mode
|
||||||
bios_regs regs;
|
bios_regs regs;
|
||||||
regs.eax = 0x12;
|
regs.eax = 0x0012;
|
||||||
call_bios(0x10, ®s);
|
call_bios(0x10, ®s);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -597,7 +597,12 @@ set_text_mode(void)
|
|||||||
{
|
{
|
||||||
// sets 80x25 text console
|
// sets 80x25 text console
|
||||||
bios_regs regs;
|
bios_regs regs;
|
||||||
regs.eax = 3;
|
regs.eax = 0x0003;
|
||||||
|
call_bios(0x10, ®s);
|
||||||
|
|
||||||
|
// turns off text cursor
|
||||||
|
regs.eax = 0x0100;
|
||||||
|
regs.ecx = 0x2000;
|
||||||
call_bios(0x10, ®s);
|
call_bios(0x10, ®s);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user