diff options
author | Javier <dev.git@javispedro.com> | 2022-04-04 00:22:24 +0200 |
---|---|---|
committer | Javier <dev.git@javispedro.com> | 2022-04-04 00:22:24 +0200 |
commit | 87397e96fd87a3741f63aa1e898d92fe8133a78e (patch) | |
tree | 50b64a633c7e2fb96796eedc741ffb066f18dd00 /dostsr.c | |
parent | f9b0699da8adb44fd91640180a7b70639a43449b (diff) | |
download | vbados-87397e96fd87a3741f63aa1e898d92fe8133a78e.tar.gz vbados-87397e96fd87a3741f63aa1e898d92fe8133a78e.zip |
add planar/ega mode cursor support
Diffstat (limited to 'dostsr.c')
-rw-r--r-- | dostsr.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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. |