diff options
author | yokota <yokota@FreeBSD.org> | 2000-01-20 13:21:47 +0000 |
---|---|---|
committer | yokota <yokota@FreeBSD.org> | 2000-01-20 13:21:47 +0000 |
commit | 630186d4d8dea85cfb479b08b29691284e6da304 (patch) | |
tree | 7fe66e38527b3ced08c0ed6cba3295d65e8c156d /sys/dev/syscons/scvidctl.c | |
parent | 8732157b07141a4e98d6c7877ec86ce4dd32b89a (diff) | |
download | FreeBSD-src-630186d4d8dea85cfb479b08b29691284e6da304.zip FreeBSD-src-630186d4d8dea85cfb479b08b29691284e6da304.tar.gz |
Fix wrong usage of FONT_NONE. It was not meant to be set in
scp->font_size in the first place. It is redundant now and is
removed.
Found by: bde
Diffstat (limited to 'sys/dev/syscons/scvidctl.c')
-rw-r--r-- | sys/dev/syscons/scvidctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/syscons/scvidctl.c b/sys/dev/syscons/scvidctl.c index 3c03ee5..686a3c4 100644 --- a/sys/dev/syscons/scvidctl.c +++ b/sys/dev/syscons/scvidctl.c @@ -273,7 +273,7 @@ sc_set_graphics_mode(scr_stat *scp, struct tty *tp, int mode) scp->xpixel = info.vi_width; scp->ypixel = info.vi_height; scp->font = NULL; - scp->font_size = FONT_NONE; + scp->font_size = 0; #ifndef SC_NO_SYSMOUSE /* move the mouse cursor at the center of the screen */ sc_mouse_move(scp, scp->xpixel / 2, scp->ypixel / 2); @@ -316,7 +316,7 @@ sc_set_pixel_mode(scr_stat *scp, struct tty *tp, int xsize, int ysize, return ENODEV; /* this shouldn't happen */ /* adjust argument values */ - if ((fontsize <= 0) || (fontsize == FONT_NONE)) + if (fontsize <= 0) fontsize = info.vi_cheight; if (fontsize < 14) { fontsize = 8; |