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