aboutsummaryrefslogtreecommitdiff
path: root/dostsr.c
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2022-04-04 00:22:24 +0200
committerJavier <dev.git@javispedro.com>2022-04-04 00:22:24 +0200
commit87397e96fd87a3741f63aa1e898d92fe8133a78e (patch)
tree50b64a633c7e2fb96796eedc741ffb066f18dd00 /dostsr.c
parentf9b0699da8adb44fd91640180a7b70639a43449b (diff)
downloadvbados-87397e96fd87a3741f63aa1e898d92fe8133a78e.tar.gz
vbados-87397e96fd87a3741f63aa1e898d92fe8133a78e.zip
add planar/ega mode cursor support
Diffstat (limited to 'dostsr.c')
-rw-r--r--dostsr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/dostsr.c b/dostsr.c
index 3e621be..e0579fb 100644
--- a/dostsr.c
+++ b/dostsr.c
@@ -332,7 +332,8 @@ static void refresh_cursor(void)
// we will have to play with the VGA registers
// so let's save and restore them.
if (video_planar) {
- save_video_registers(&regs);
+ vga_save_registers(&regs);
+ vga_set_graphics_mode(&regs, 0, 0);
}
if (data.cursor_visible) {
@@ -343,7 +344,7 @@ static void refresh_cursor(void)
}
if (video_planar) {
- restore_video_registers(&regs);
+ vga_restore_register(&regs);
}
} else {
// Unknown video mode, don't render cursor.