summaryrefslogtreecommitdiffstats
path: root/sys/dev/vt/hw
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/vt/hw')
-rw-r--r--sys/dev/vt/hw/fb/vt_fb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/vt/hw/fb/vt_fb.c b/sys/dev/vt/hw/fb/vt_fb.c
index 86a2202..1a9bbec 100644
--- a/sys/dev/vt/hw/fb/vt_fb.c
+++ b/sys/dev/vt/hw/fb/vt_fb.c
@@ -416,10 +416,10 @@ vt_fb_init(struct vt_device *vd)
int err;
info = vd->vd_softc;
- vd->vd_height = MIN(VT_FB_DEFAULT_HEIGHT, info->fb_height);
+ vd->vd_height = MIN(VT_FB_MAX_HEIGHT, info->fb_height);
margin = (info->fb_height - vd->vd_height) >> 1;
vd->vd_transpose = margin * info->fb_stride;
- vd->vd_width = MIN(VT_FB_DEFAULT_WIDTH, info->fb_width);
+ vd->vd_width = MIN(VT_FB_MAX_WIDTH, info->fb_width);
margin = (info->fb_width - vd->vd_width) >> 1;
vd->vd_transpose += margin * (info->fb_bpp / NBBY);
vd->vd_video_dev = info->fb_video_dev;
OpenPOWER on IntegriCloud