aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Ruppert <info@vruppert.de>2002-09-08 19:14:31 +0000
committerVolker Ruppert <info@vruppert.de>2002-09-08 19:14:31 +0000
commit06816c6d4eb322075a03ac7a66583f6a53218da8 (patch)
treed0d29b10790164727ea5aa2a2670296378ce537d
parent70ba8d55b2edf333dc8261e3e795a77bd2aa5cd5 (diff)
downloadvgabios-06816c6d4eb322075a03ac7a66583f6a53218da8.tar.gz
- set the cursor shape depending on the current font height
- clear BL before calling int 0x10 function 0x1103 in vgabios_init_func
-rw-r--r--vgabios.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/vgabios.c b/vgabios.c
index d07ded4..bb1dcbe 100644
--- a/vgabios.c
+++ b/vgabios.c
@@ -235,6 +235,7 @@ init_no_vbe_display:
mov bl, #0x00
int #0x10
mov ax, #0x1103
+ mov bl, #0x00
int #0x10
;; show info
@@ -935,8 +936,14 @@ static void biosfn_set_video_mode(mode) Bit8u mode;
// Set cursor shape
if(vga_modes[line].class==TEXT)
{
- //biosfn_set_cursor_shape(0x06,0x07); // CGA
- biosfn_set_cursor_shape(0x0A,0x0B); // Monochrome
+ if(cheight<14)
+ {
+ biosfn_set_cursor_shape(0x06,0x07);
+ }
+ else
+ {
+ biosfn_set_cursor_shape(0x0C,0x0D);
+ }
}
// Set cursor pos for page 0..7