Module Name:    src
Committed By:   rin
Date:           Wed Aug  7 10:59:51 UTC 2019

Modified Files:
        src/sys/dev/rasops: rasops.c

Log Message:
Depth 2 is monochrome.

IMO, it is impossible to support ANSI colors on 2-bpp display; fore-
and background can be same value even if they are different colors
logically.


To generate a diff of this commit:
cvs rdiff -u -r1.111 -r1.112 src/sys/dev/rasops/rasops.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/rasops/rasops.c
diff -u src/sys/dev/rasops/rasops.c:1.111 src/sys/dev/rasops/rasops.c:1.112
--- src/sys/dev/rasops/rasops.c:1.111	Wed Aug  7 10:55:51 2019
+++ src/sys/dev/rasops/rasops.c	Wed Aug  7 10:59:51 2019
@@ -1,4 +1,4 @@
-/*	 $NetBSD: rasops.c,v 1.111 2019/08/07 10:55:51 rin Exp $	*/
+/*	 $NetBSD: rasops.c,v 1.112 2019/08/07 10:59:51 rin Exp $	*/
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rasops.c,v 1.111 2019/08/07 10:55:51 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rasops.c,v 1.112 2019/08/07 10:59:51 rin Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_rasops.h"
@@ -484,10 +484,10 @@ rasops_reconfig(struct rasops_info *ri, 
 		    WSSCREEN_WSCOLORS | WSSCREEN_REVERSE);
 
 	if ((ri->ri_flg & RI_FORCEMONO) != 0 ||
-#ifdef RASOPS_APPLE_PALETTE
-	    ri->ri_depth == 1
-#else
+#ifndef RASOPS_APPLE_PALETTE
 	    ri->ri_depth < 8
+#else
+	    ri->ri_depth < 4
 #endif
 	) {
 		ri->ri_ops.allocattr = rasops_allocattr_mono;

Reply via email to