diff options
author | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2002-05-02 19:21:49 +0000 |
---|---|---|
committer | Matthieu Herrb <matthieu@cvs.openbsd.org> | 2002-05-02 19:21:49 +0000 |
commit | b1dc8814f8402c854f3054f917ec6a6afa3a8a42 (patch) | |
tree | be67a5b28743a8b2961222da01aa220b87665f0d /sys/dev/rasops | |
parent | 50d39afcfacf1cbca6aac2aedeb1dc28b7de0038 (diff) |
use the gallant 12x22 font by default on screens that are more
than 960 pixels wide if !SMALL_KERNEL, like rcons does.
Ok drahn@, mickey@, miod@.x
Diffstat (limited to 'sys/dev/rasops')
-rw-r--r-- | sys/dev/rasops/rasops.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/sys/dev/rasops/rasops.c b/sys/dev/rasops/rasops.c index bc15dfbcbaa..97e936412bf 100644 --- a/sys/dev/rasops/rasops.c +++ b/sys/dev/rasops/rasops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rasops.c,v 1.2 2002/03/14 01:27:02 millert Exp $ */ +/* $OpenBSD: rasops.c,v 1.3 2002/05/02 19:21:48 matthieu Exp $ */ /* $NetBSD: rasops.c,v 1.35 2001/02/02 06:01:01 marcus Exp $ */ /*- @@ -129,8 +129,14 @@ rasops_init(ri, wantrows, wantcols) wsfont_init(); - /* Want 8 pixel wide, don't care about aestethics */ - if ((cookie = wsfont_find(NULL, 8, 0, 0)) <= 0) + if (ri->ri_width > 80*12) + /* High res screen, choose a big font */ + cookie = wsfont_find(NULL, 12, 0, 0); + else + /* lower res, choose a 8 pixel wide font */ + cookie = wsfont_find(NULL, 8, 0, 0); + + if (cookie <= 0) cookie = wsfont_find(NULL, 0, 0, 0); if (cookie <= 0) { |