FreeBSD Bugzilla – Attachment 183892 Details for
Bug 220344
Unhardcode vt(4) splash screen colors
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to unhardcode colors and update vt(4) manpage
patch__vt_splash_colors.txt (text/plain), 1.33 KB, created by
Kiernan Hager
on 2017-06-28 19:03:07 UTC
(
hide
)
Description:
Patch to unhardcode colors and update vt(4) manpage
Filename:
MIME Type:
Creator:
Kiernan Hager
Created:
2017-06-28 19:03:07 UTC
Size:
1.33 KB
patch
obsolete
>--- share/man/man4/vt.4.orig 2017-06-28 12:39:05.791811000 -0600 >+++ share/man/man4/vt.4 2017-06-28 12:28:24.489836000 -0600 >@@ -151,6 +151,10 @@ > .It VT_FB_DEFAULT_HEIGHT=Y > Set the default height to > .Fa Y . >+.It Dv VT_SPLASH_FG= Ns Pa color >+.It Dv VT_SPLASH_BG= Ns Pa color >+These options set the foreground and background colors of the splash >+screen. > .El > .Sh BACKWARDS COMPATIBILITY > Several options are provided for compatibility with the previous >--- sys/dev/vt/vt.h.orig 2017-06-28 12:32:02.123961000 -0600 >+++ sys/dev/vt/vt.h 2017-06-28 12:23:20.472950000 -0600 >@@ -62,6 +62,14 @@ > #define VT_ALT_TO_ESC_HACK 1 > #endif > >+#ifndef VT_SPLASH_FG >+#define VT_SPLASH_FG TC_WHITE >+#endif >+ >+#ifndef VT_SPLASH_BG >+#define VT_SPLASH_BG TC_BLACK >+#endif >+ > #define VT_CONSWINDOW 0 > > #if defined(SC_TWOBUTTON_MOUSE) || defined(VT_TWOBUTTON_MOUSE) >--- sys/dev/vt/vt_core.c.orig 2017-06-28 12:33:26.898252000 -0600 >+++ sys/dev/vt/vt_core.c 2017-06-28 12:35:14.895251000 -0600 >@@ -1307,10 +1307,9 @@ > left = (vd->vd_width - vt_logo_width) / 2; > switch (vt_logo_depth) { > case 1: >- /* XXX: Unhardcode colors! */ > vd->vd_driver->vd_bitblt_bmp(vd, vd->vd_curwindow, > vt_logo_image, NULL, vt_logo_width, vt_logo_height, >- left, top, TC_WHITE, TC_BLACK); >+ left, top, VT_SPLASH_FG, VT_SPLASH_BG); > } > vd->vd_flags |= VDF_SPLASH; > }
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 220344
: 183892