diff options
author | jake <jake@FreeBSD.org> | 2003-08-24 04:04:44 +0000 |
---|---|---|
committer | jake <jake@FreeBSD.org> | 2003-08-24 04:04:44 +0000 |
commit | cdf6135faf5691df98905addfa24f8631d437d87 (patch) | |
tree | 7dc797dd51d061d7bcd66e5b9e06e69a5d5a7ee0 /sys/dev/syscons/syscons.c | |
parent | fd03c93639090053d125e3214ed386717425c7bb (diff) | |
download | FreeBSD-src-cdf6135faf5691df98905addfa24f8631d437d87.zip FreeBSD-src-cdf6135faf5691df98905addfa24f8631d437d87.tar.gz |
- Add a font width field to struct scr_stat. Use this instead of '8'.
- Use the values in the video info for the font size and width instead
of second guessing.
Diffstat (limited to 'sys/dev/syscons/syscons.c')
-rw-r--r-- | sys/dev/syscons/syscons.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c index d940cac..41ae937 100644 --- a/sys/dev/syscons/syscons.c +++ b/sys/dev/syscons/syscons.c @@ -2989,22 +2989,21 @@ init_scp(sc_softc_t *sc, int vty, scr_stat *scp) scp->ysize = info.vi_height; scp->xpixel = scp->xsize*info.vi_cwidth; scp->ypixel = scp->ysize*info.vi_cheight; + scp->font_size = info.vi_cheight; + scp->font_width = info.vi_cwidth; if (info.vi_cheight < 14) { - scp->font_size = 8; #ifndef SC_NO_FONT_LOADING scp->font = sc->font_8; #else scp->font = NULL; #endif } else if (info.vi_cheight >= 16) { - scp->font_size = 16; #ifndef SC_NO_FONT_LOADING scp->font = sc->font_16; #else scp->font = NULL; #endif } else { - scp->font_size = 14; #ifndef SC_NO_FONT_LOADING scp->font = sc->font_14; #else |