aboutsummaryrefslogtreecommitdiffstats
path: root/vgasrc/stdvga.c
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2012-01-27 22:59:46 -0500
committerKevin O'Connor <kevin@koconnor.net>2012-02-01 20:39:21 -0500
commit1692007a5ff81cfd88d80d495c11fc8ad25aa35b (patch)
tree33f7758bc020a3e1ff90186e04264e830ca7b788 /vgasrc/stdvga.c
parent59f75d4bdc11e4f6bfea449347bdbf90c5a1fafc (diff)
downloadseabios-1692007a5ff81cfd88d80d495c11fc8ad25aa35b.tar.gz
vgabios: Minor - pass display address to stdvga_set_cursor_pos().
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'vgasrc/stdvga.c')
-rw-r--r--vgasrc/stdvga.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/vgasrc/stdvga.c b/vgasrc/stdvga.c
index 13334ed4..ed4dcd29 100644
--- a/vgasrc/stdvga.c
+++ b/vgasrc/stdvga.c
@@ -254,9 +254,10 @@ stdvga_set_cursor_shape(u8 start, u8 end)
}
void
-stdvga_set_cursor_pos(u16 address)
+stdvga_set_cursor_pos(int address)
{
u16 crtc_addr = stdvga_get_crtc();
+ address /= 2; // Assume we're in text mode.
stdvga_crtc_write(crtc_addr, 0x0e, address >> 8);
stdvga_crtc_write(crtc_addr, 0x0f, address);
}