diff options
author | jkim <jkim@FreeBSD.org> | 2010-11-29 22:20:44 +0000 |
---|---|---|
committer | jkim <jkim@FreeBSD.org> | 2010-11-29 22:20:44 +0000 |
commit | a73145c400afe3ba45228e4d8aaed1a4bbd2eef9 (patch) | |
tree | 1ebe37c68eb8271529e2d73ab15343f8bb3e0306 /sys/dev | |
parent | 8a3b4abaf94708f6d6bd4208e6a1b47d1493bf5c (diff) | |
download | FreeBSD-src-a73145c400afe3ba45228e4d8aaed1a4bbd2eef9.zip FreeBSD-src-a73145c400afe3ba45228e4d8aaed1a4bbd2eef9.tar.gz |
Clean up code a bit to make it more readable.
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/syscons/syscons.c | 27 |
1 files changed, 9 insertions, 18 deletions
diff --git a/sys/dev/syscons/syscons.c b/sys/dev/syscons/syscons.c index d2c3ba2..f005c8e 100644 --- a/sys/dev/syscons/syscons.c +++ b/sys/dev/syscons/syscons.c @@ -3119,27 +3119,18 @@ init_scp(sc_softc_t *sc, int vty, scr_stat *scp) 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 = info.vi_cheight; + scp->font_width = info.vi_cwidth; #ifndef SC_NO_FONT_LOADING - scp->font = sc->font_8; -#else - scp->font = NULL; -#endif - } else if (info.vi_cheight >= 16) { -#ifndef SC_NO_FONT_LOADING - scp->font = sc->font_16; -#else - scp->font = NULL; -#endif - } else { -#ifndef SC_NO_FONT_LOADING - scp->font = sc->font_14; + if (info.vi_cheight < 14) + scp->font = sc->font_8; + else if (info.vi_cheight >= 16) + scp->font = sc->font_16; + else + scp->font = sc->font_14; #else - scp->font = NULL; + scp->font = NULL; #endif - } sc_vtb_init(&scp->vtb, VTB_MEMORY, 0, 0, NULL, FALSE); #ifndef __sparc64__ |