X-Git-Url: http://wien.tomnetworks.com/gitweb/?p=seabios.git;a=blobdiff_plain;f=vgasrc%2Fvgabios.c;h=2f24e7828c91a99e16a8ac0f414754c2dc034473;hp=25d97294dd0cfe43d0116b6bebdb8c99b98ce9d1;hb=1692007a5ff81cfd88d80d495c11fc8ad25aa35b;hpb=59f75d4bdc11e4f6bfea449347bdbf90c5a1fafc 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