From 119b7dccf012c67d4f223b6e2f1d143081e5f119 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Wed, 2 Jul 2008 15:04:10 +0000 Subject: [PATCH] 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 --- src/system/boot/platform/bios_ia32/video.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/system/boot/platform/bios_ia32/video.cpp b/src/system/boot/platform/bios_ia32/video.cpp index 72692ed2ac..b7a32ecde3 100644 --- a/src/system/boot/platform/bios_ia32/video.cpp +++ b/src/system/boot/platform/bios_ia32/video.cpp @@ -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, ®s); } @@ -597,7 +597,12 @@ set_text_mode(void) { // sets 80x25 text console 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); }