diff options
author | bdrewery <bdrewery@FreeBSD.org> | 2016-07-25 17:37:02 +0000 |
---|---|---|
committer | bdrewery <bdrewery@FreeBSD.org> | 2016-07-25 17:37:02 +0000 |
commit | 4d54de38f535b34fc45ac0370356885b10c53de6 (patch) | |
tree | aa2338f5d437c73266aea46e0ba1cca7e4429d1d /sys/dev/vt/hw/fb/vt_fb.c | |
parent | 1509cba450714b071cf5632da162018043b7ea5f (diff) | |
download | FreeBSD-src-4d54de38f535b34fc45ac0370356885b10c53de6.zip FreeBSD-src-4d54de38f535b34fc45ac0370356885b10c53de6.tar.gz |
MFC r303043:
Increase vt(4) framebuffer maximum size
PR: 210382
Approved by: re (gjb)
Diffstat (limited to 'sys/dev/vt/hw/fb/vt_fb.c')
-rw-r--r-- | sys/dev/vt/hw/fb/vt_fb.c | 4 |
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; |