View | Details | Raw Unified | Return to bug 220344
Collapse All | Expand All

(-)share/man/man4/vt.4 (+4 lines)
Lines 151-156 Link Here
151
.It VT_FB_DEFAULT_HEIGHT=Y
151
.It VT_FB_DEFAULT_HEIGHT=Y
152
Set the default height to
152
Set the default height to
153
.Fa Y .
153
.Fa Y .
154
.It Dv VT_SPLASH_FG= Ns Pa color
155
.It Dv VT_SPLASH_BG= Ns Pa color
156
These options set the foreground and background colors of the splash 
157
screen.
154
.El
158
.El
155
.Sh BACKWARDS COMPATIBILITY
159
.Sh BACKWARDS COMPATIBILITY
156
Several options are provided for compatibility with the previous
160
Several options are provided for compatibility with the previous
(-)sys/dev/vt/vt.h (+8 lines)
Lines 62-67 Link Here
62
#define	VT_ALT_TO_ESC_HACK	1
62
#define	VT_ALT_TO_ESC_HACK	1
63
#endif
63
#endif
64
64
65
#ifndef VT_SPLASH_FG
66
#define VT_SPLASH_FG TC_WHITE
67
#endif
68
69
#ifndef VT_SPLASH_BG
70
#define VT_SPLASH_BG TC_BLACK
71
#endif
72
65
#define	VT_CONSWINDOW	0
73
#define	VT_CONSWINDOW	0
66
74
67
#if defined(SC_TWOBUTTON_MOUSE) || defined(VT_TWOBUTTON_MOUSE)
75
#if defined(SC_TWOBUTTON_MOUSE) || defined(VT_TWOBUTTON_MOUSE)
(-)sys/dev/vt/vt_core.c (-2 / +1 lines)
Lines 1307-1316 Link Here
1307
		left = (vd->vd_width - vt_logo_width) / 2;
1307
		left = (vd->vd_width - vt_logo_width) / 2;
1308
		switch (vt_logo_depth) {
1308
		switch (vt_logo_depth) {
1309
		case 1:
1309
		case 1:
1310
			/* XXX: Unhardcode colors! */
1311
			vd->vd_driver->vd_bitblt_bmp(vd, vd->vd_curwindow,
1310
			vd->vd_driver->vd_bitblt_bmp(vd, vd->vd_curwindow,
1312
			    vt_logo_image, NULL, vt_logo_width, vt_logo_height,
1311
			    vt_logo_image, NULL, vt_logo_width, vt_logo_height,
1313
			    left, top, TC_WHITE, TC_BLACK);
1312
			    left, top, VT_SPLASH_FG, VT_SPLASH_BG);
1314
		}
1313
		}
1315
		vd->vd_flags |= VDF_SPLASH;
1314
		vd->vd_flags |= VDF_SPLASH;
1316
	}
1315
	}

Return to bug 220344