From bd274f1c691f67a4c4efc859da02c6fd7a6cfe49 Mon Sep 17 00:00:00 2001 From: "Todd T. Fries" Date: Fri, 20 Mar 1998 05:18:31 +0000 Subject: 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 --- sys/arch/sparc/dev/fb.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'sys/arch/sparc/dev/fb.c') 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; -- cgit v1.2.3