aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/fb/vesa.c
diff options
context:
space:
mode:
authorPedro F. Giffuni <pfg@FreeBSD.org>2016-04-30 14:41:18 +0000
committerPedro F. Giffuni <pfg@FreeBSD.org>2016-04-30 14:41:18 +0000
commit4ed3c0e713adac46dcca8a9ee668221399b7b659 (patch)
tree06929dc26671f0710b964d5bb0a7634f12528a36 /sys/dev/fb/vesa.c
parent7154bf4a413eca71cffdb37361ad19960501a2fa (diff)
Notes
Diffstat (limited to 'sys/dev/fb/vesa.c')
-rw-r--r--sys/dev/fb/vesa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/fb/vesa.c b/sys/dev/fb/vesa.c
index cdd836cd3d3c..4ab83c30ff4b 100644
--- a/sys/dev/fb/vesa.c
+++ b/sys/dev/fb/vesa.c
@@ -1581,7 +1581,7 @@ vesa_set_origin(video_adapter_t *adp, off_t offset)
regs.R_DX = offset / adp->va_window_gran;
x86bios_intr(&regs, 0x10);
- adp->va_window_orig = (offset/adp->va_window_gran)*adp->va_window_gran;
+ adp->va_window_orig = rounddown(offset, adp->va_window_gran);
return (0); /* XXX */
}