diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2012-01-27 22:59:46 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2012-02-01 20:39:21 -0500 |
commit | 1692007a5ff81cfd88d80d495c11fc8ad25aa35b (patch) | |
tree | 33f7758bc020a3e1ff90186e04264e830ca7b788 /vgasrc/vgabios.c | |
parent | 59f75d4bdc11e4f6bfea449347bdbf90c5a1fafc (diff) | |
download | seabios-hppa-1692007a5ff81cfd88d80d495c11fc8ad25aa35b.zip seabios-hppa-1692007a5ff81cfd88d80d495c11fc8ad25aa35b.tar.gz seabios-hppa-1692007a5ff81cfd88d80d495c11fc8ad25aa35b.tar.bz2 |
vgabios: Minor - pass display address to stdvga_set_cursor_pos().
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'vgasrc/vgabios.c')
-rw-r--r-- | vgasrc/vgabios.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/vgasrc/vgabios.c b/vgasrc/vgabios.c index 25d9729..2f24e78 100644 --- a/vgasrc/vgabios.c +++ b/vgasrc/vgabios.c @@ -138,11 +138,9 @@ set_cursor_pos(struct cursorpos cp) return; // Calculate the memory address - u16 nbcols = GET_BDA(video_cols); - u16 address = (GET_BDA(video_pagesize) * cp.page - + (cp.x + cp.y * nbcols) * 2); - - stdvga_set_cursor_pos(address / 2); + int address = (GET_BDA(video_pagesize) * cp.page + + (cp.x + cp.y * GET_BDA(video_cols)) * 2); + stdvga_set_cursor_pos(address); } static struct cursorpos |