freebsd-dev/sys/dev/vt
Ed Maste c6317b8376 Correct vt(4) border calculations on font switch
If a vt(4) font does not exactly fit the screen dimensions, the console
window is offset so that it is centered.  A rectangle is drawn at the
top, left, right, and bottom of the screen, to erase any leftovers that
are outside of the new usable console area.

If the x offset or y offset is 0 then the left border or top border
respectively is not drawn.  The right and bottom borders may be one
pixel larger than necessary due to rounding, and are always drawn.

Prior to this change a 0 offset would result in a panic when calling
vt_drawrect with an x or y coordinate of -1.

Sponsored by:	The FreeBSD Foundation
2014-05-29 21:52:42 +00:00
..
colors
font Update whitespace to match mkkfont output 2013-12-23 17:49:12 +00:00
hw Remove driver as unused. 2014-05-29 12:29:58 +00:00
logo
vt_buf.c Update size in vt_grow if we don't have to reallocate 2014-05-29 21:10:33 +00:00
vt_consolectl.c Hide debug messages under VT_DEBUG. 2014-05-08 22:52:05 +00:00
vt_core.c Correct vt(4) border calculations on font switch 2014-05-29 21:52:42 +00:00
vt_font.c Increase vt(9) max glyph data to 1MB for CJK fonts with many glyphs 2014-01-01 19:38:15 +00:00
vt_sysmouse.c Hide debug messages under VT_DEBUG. 2014-05-08 22:52:05 +00:00
vt.h Hide debug messages under VT_DEBUG. 2014-05-08 22:52:05 +00:00