aboutsummaryrefslogtreecommitdiffstats
path: root/vgasrc/vbe.c
diff options
context:
space:
mode:
Diffstat (limited to 'vgasrc/vbe.c')
-rw-r--r--vgasrc/vbe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vgasrc/vbe.c b/vgasrc/vbe.c
index 91abc9ab..20437dba 100644
--- a/vgasrc/vbe.c
+++ b/vgasrc/vbe.c
@@ -244,7 +244,7 @@ vbe_104f04(struct bregs *regs)
if (ret < 0)
goto fail;
if (cmd == 0)
- regs->bx = ret / 64;
+ regs->bx = DIV_ROUND_UP(ret, 64);
regs->ax = 0x004f;
return;
fail: