]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
vt: terminal size can grow too big with small font
authorToomas Soome <tsoome@FreeBSD.org>
Thu, 21 Jan 2021 22:18:56 +0000 (00:18 +0200)
committerToomas Soome <tsoome@FreeBSD.org>
Thu, 18 Feb 2021 08:22:43 +0000 (10:22 +0200)
commit03c31d3ca31ab211055e01aae6b8a81c27d1a29b
tree895a93253425f1c69fe29350dbd464387a9e360b
parentc3942b4284d10d5a811bdfffb99477772e6c7f76
vt: terminal size can grow too big with small font

vt is using static buffers for on screen data, the buffer size is
calculated based on maximum supported screen size and 8x16 font.

When using hi-res graphics and very smaller than 8x16 font, we
need to be careful not to overflow static buffers in vt.

Testing: I did test by building smaller buffers than vt currently is using,
royger was testing on actual 4k capable hardware.

Tested by: royger

(cherry picked from commit 32bf05ad89aaa93f4dd27e3721f4cb52cf57fa03)
Approved by: re(gjb)
sys/dev/vt/vt_core.c