From 87397e96fd87a3741f63aa1e898d92fe8133a78e Mon Sep 17 00:00:00 2001 From: Javier Date: Mon, 4 Apr 2022 00:22:24 +0200 Subject: add planar/ega mode cursor support --- dostsr.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'dostsr.c') 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(®s); + vga_save_registers(®s); + vga_set_graphics_mode(®s, 0, 0); } if (data.cursor_visible) { @@ -343,7 +344,7 @@ static void refresh_cursor(void) } if (video_planar) { - restore_video_registers(®s); + vga_restore_register(®s); } } else { // Unknown video mode, don't render cursor. -- cgit v1.2.3