diff options
author | Todd T. Fries <todd@cvs.openbsd.org> | 1998-03-20 05:18:31 +0000 |
---|---|---|
committer | Todd T. Fries <todd@cvs.openbsd.org> | 1998-03-20 05:18:31 +0000 |
commit | bd274f1c691f67a4c4efc859da02c6fd7a6cfe49 (patch) | |
tree | eafbb26f65a008dd86feb7fdd7d39eb003a2eed2 /sys/arch/sparc/dev/fb.c | |
parent | 6eca3ec0066eedba2dd2398a565f016660def011 (diff) |
small (aka 'fixed' from X) fonts for raster consoles < 800*600 in size
this changes the choice to be at run-time from compile time
Diffstat (limited to 'sys/arch/sparc/dev/fb.c')
-rw-r--r-- | sys/arch/sparc/dev/fb.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/arch/sparc/dev/fb.c b/sys/arch/sparc/dev/fb.c index 33c07334d44..9ef896b3f7f 100644 --- a/sys/arch/sparc/dev/fb.c +++ b/sys/arch/sparc/dev/fb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fb.c,v 1.13 1997/11/11 13:04:22 niklas Exp $ */ +/* $OpenBSD: fb.c,v 1.14 1998/03/20 05:18:27 todd Exp $ */ /* $NetBSD: fb.c,v 1.23 1997/07/07 23:30:22 pk Exp $ */ /* @@ -402,8 +402,11 @@ fbrcons_init(fb) rc->rc_width = fb->fb_type.fb_width; rc->rc_height = fb->fb_type.fb_height; rc->rc_depth = fb->fb_type.fb_depth; - /* Setup the static font */ - rc->rc_font = &console_font; + /* Setup the static font, use a small font if display is < 800x600 */ + if(rc->rc_height * rc->rc_width < 800*600) + rc->rc_font = &console_font_fixed; + else + rc->rc_font = &console_font; rc->rc_maxcol = rc->rc_width / rc->rc_font->width; rc->rc_maxrow = rc->rc_height / rc->rc_font->height; |