From 4bd3368073fa637b11c58d4217fdb15dc65adcd8 Mon Sep 17 00:00:00 2001 From: miod Date: Wed, 20 Aug 2008 18:49:12 +0000 Subject: [PATCH] If RI_FORCEMONO is set in ri_flags, build ri_devcmap as if it was a 1bpp frame buffer. --- sys/dev/rasops/rasops.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sys/dev/rasops/rasops.c b/sys/dev/rasops/rasops.c index a9ce1884bd7..719aa91142f 100644 --- a/sys/dev/rasops/rasops.c +++ b/sys/dev/rasops/rasops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rasops.c,v 1.18 2008/06/26 05:42:17 ray Exp $ */ +/* $OpenBSD: rasops.c,v 1.19 2008/08/20 18:49:12 miod Exp $ */ /* $NetBSD: rasops.c,v 1.35 2001/02/02 06:01:01 marcus Exp $ */ /*- @@ -735,14 +735,14 @@ rasops_init_devcmap(ri) int c; #endif - switch (ri->ri_depth) { -#if NRASOPS1 > 0 - case 1: + if (ri->ri_depth == 1 || (ri->ri_flg & RI_FORCEMONO) != 0) { ri->ri_devcmap[0] = 0; for (i = 1; i < 16; i++) ri->ri_devcmap[i] = 0xffffffff; return; -#endif + } + + switch (ri->ri_depth) { #if NRASOPS2 > 0 case 2: for (i = 1; i < 15; i++) -- 2.20.1