aboutsummaryrefslogtreecommitdiffstats
path: root/vgasrc/stdvga.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2014-10-22 20:57:37 -0400
committerKevin O'Connor <kevin@koconnor.net>2014-10-27 11:02:28 -0400
commitc9aecfcd14ec5dcddd93fd84dc02a8aee61dc63e (patch)
tree9843250f50d8e2a41a3a9c63ff63b8fb1e81bf6e /vgasrc/stdvga.c
parent479fd7255fbc19224d93690916826932841abe2d (diff)
downloadseabios-c9aecfcd14ec5dcddd93fd84dc02a8aee61dc63e.tar.gz
vgabios: Refactor get/set_cursor_shape() code
Rework the code so that it is possible to calculate the current cursor shape even when not changing it. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'vgasrc/stdvga.c')
-rw-r--r--vgasrc/stdvga.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/vgasrc/stdvga.c b/vgasrc/stdvga.c
index 70cceed1..00a0fc57 100644
--- a/vgasrc/stdvga.c
+++ b/vgasrc/stdvga.c
@@ -229,11 +229,11 @@ stdvga_vram_ratio(struct vgamode_s *vmode_g)
}
void
-stdvga_set_cursor_shape(u8 start, u8 end)
+stdvga_set_cursor_shape(u16 cursor_type)
{
u16 crtc_addr = stdvga_get_crtc();
- stdvga_crtc_write(crtc_addr, 0x0a, start);
- stdvga_crtc_write(crtc_addr, 0x0b, end);
+ stdvga_crtc_write(crtc_addr, 0x0a, cursor_type >> 8);
+ stdvga_crtc_write(crtc_addr, 0x0b, cursor_type);
}
void