summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorad <ad@NetBSD.org>2002-03-13 10:07:14 +0000
committerad <ad@NetBSD.org>2002-03-13 10:07:14 +0000
commit4a032cc0fb42f1edcd851f4e6e76e8d2eb5bbda5 (patch)
treec74ad40ac8622f65f90cbde2f2f41bd5f94bf259 /sys
parent4067afd3220624891179f07d864dd29abc8a713e (diff)
Set RI_FORCEMONO so that wscons doesn't try to use colors (mfb is an 8-bpp
device with a depth of 1).
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/tc/mfb.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/tc/mfb.c b/sys/dev/tc/mfb.c
index 91d55e40e2f..ee5c6d0b816 100644
--- a/sys/dev/tc/mfb.c
+++ b/sys/dev/tc/mfb.c
@@ -1,4 +1,4 @@
-/* $NetBSD: mfb.c,v 1.29 2001/11/13 06:26:10 lukem Exp $ */
+/* $NetBSD: mfb.c,v 1.30 2002/03/13 10:07:14 ad Exp $ */
/*
* Copyright (c) 1998, 1999 Tohru Nishimura. All rights reserved.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mfb.c,v 1.29 2001/11/13 06:26:10 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mfb.c,v 1.30 2002/03/13 10:07:14 ad Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -294,7 +294,7 @@ mfb_common_init(ri)
/* initialize colormap and cursor hardware */
mfbhwinit(base);
- ri->ri_flg = RI_CENTER;
+ ri->ri_flg = RI_CENTER | RI_FORCEMONO;
ri->ri_depth = 8; /* !! watch out !! */
ri->ri_width = 1280;
ri->ri_height = 1024;