From 5497ee0acfda572a343a58eac24b6ef0d249916e Mon Sep 17 00:00:00 2001 From: Yoshihiro Takahashi Date: Thu, 25 Apr 2002 13:25:36 +0000 Subject: [PATCH] Merged from sys/dev/syscons/syscons.c revision 1.383 --- sys/pc98/pc98/syscons.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/pc98/pc98/syscons.c b/sys/pc98/pc98/syscons.c index 9767443596a5..2a64d4186899 100644 --- a/sys/pc98/pc98/syscons.c +++ b/sys/pc98/pc98/syscons.c @@ -2924,14 +2924,14 @@ init_scp(sc_softc_t *sc, int vty, scr_stat *scp) scp->status |= GRAPHICS_MODE; scp->xpixel = info.vi_width; scp->ypixel = info.vi_height; - scp->xsize = info.vi_width/8; + scp->xsize = info.vi_width/info.vi_cwidth; scp->ysize = info.vi_height/info.vi_cheight; scp->font_size = 0; scp->font = NULL; } else { scp->xsize = info.vi_width; scp->ysize = info.vi_height; - scp->xpixel = scp->xsize*8; + scp->xpixel = scp->xsize*info.vi_cwidth; scp->ypixel = scp->ysize*info.vi_cheight; if (info.vi_cheight < 14) { scp->font_size = 8;