FreeBSD Bugzilla – Attachment 171584 Details for
Bug 210382
Remove hardcoded maximum size (2048x1600) from vt(4) framebuffer
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
A simple solution - increase limit and clarify
vt.patch (text/plain), 1.88 KB, created by
Felix
on 2016-06-19 22:51:12 UTC
(
hide
)
Description:
A simple solution - increase limit and clarify
Filename:
MIME Type:
Creator:
Felix
Created:
2016-06-19 22:51:12 UTC
Size:
1.88 KB
patch
obsolete
>Index: sys/dev/vt/hw/fb/vt_fb.c >=================================================================== >--- sys/dev/vt/hw/fb/vt_fb.c (revision 302017) >+++ sys/dev/vt/hw/fb/vt_fb.c (working copy) >@@ -416,10 +416,10 @@ > 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; >Index: sys/dev/vt/vt.h >=================================================================== >--- sys/dev/vt/vt.h (revision 302017) >+++ sys/dev/vt/vt.h (working copy) >@@ -377,11 +377,11 @@ > #define PIXEL_WIDTH(w) ((w) / 8) > #define PIXEL_HEIGHT(h) ((h) / 16) > >-#ifndef VT_FB_DEFAULT_WIDTH >-#define VT_FB_DEFAULT_WIDTH 2048 >+#ifndef VT_FB_MAX_WIDTH >+#define VT_FB_MAX_WIDTH 4096 > #endif >-#ifndef VT_FB_DEFAULT_HEIGHT >-#define VT_FB_DEFAULT_HEIGHT 1200 >+#ifndef VT_FB_MAX_HEIGHT >+#define VT_FB_MAX_HEIGHT 2400 > #endif > > /* name argument is not used yet. */ >@@ -460,4 +460,3 @@ > void vtterm_draw_cpu_logos(struct vt_device *); > > #endif /* !_DEV_VT_VT_H_ */ >- >Index: sys/dev/vt/vt_core.c >=================================================================== >--- sys/dev/vt/vt_core.c (revision 302017) >+++ sys/dev/vt/vt_core.c (working copy) >@@ -181,8 +181,8 @@ > > SET_DECLARE(vt_drv_set, struct vt_driver); > >-#define _VTDEFH MAX(100, PIXEL_HEIGHT(VT_FB_DEFAULT_HEIGHT)) >-#define _VTDEFW MAX(200, PIXEL_WIDTH(VT_FB_DEFAULT_WIDTH)) >+#define _VTDEFH MAX(100, PIXEL_HEIGHT(VT_FB_MAX_HEIGHT)) >+#define _VTDEFW MAX(200, PIXEL_WIDTH(VT_FB_MAX_WIDTH)) > > struct terminal vt_consterm; > static struct vt_window vt_conswindow;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 210382
:
171584
|
171602
|
171626
|
213861