1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-23 11:18:54 +00:00

Clean up code a bit to make it more readable.

This commit is contained in:
Jung-uk Kim 2010-11-29 22:20:44 +00:00
parent 0cb06f72d5
commit 82515b4f1f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=216068

View File

@ -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;
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
} 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;
#else
scp->font = NULL;
#endif
}
sc_vtb_init(&scp->vtb, VTB_MEMORY, 0, 0, NULL, FALSE);
#ifndef __sparc64__