Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/rasops Make monochrome attribte allocation a bit mor...



details:   https://anonhg.NetBSD.org/src/rev/108613d8aa6e
branches:  trunk
changeset: 475825:108613d8aa6e
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Thu Aug 26 21:48:11 1999 +0000

description:
Make monochrome attribte allocation a bit more obvious.

diffstat:

 sys/dev/rasops/rasops.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r fc159a43232e -r 108613d8aa6e sys/dev/rasops/rasops.c
--- a/sys/dev/rasops/rasops.c   Thu Aug 26 20:50:08 1999 +0000
+++ b/sys/dev/rasops/rasops.c   Thu Aug 26 21:48:11 1999 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: rasops.c,v 1.14 1999/08/25 08:45:25 ad Exp $ */
+/*      $NetBSD: rasops.c,v 1.15 1999/08/26 21:48:11 thorpej Exp $ */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rasops.c,v 1.14 1999/08/25 08:45:25 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rasops.c,v 1.15 1999/08/26 21:48:11 thorpej Exp $");
 
 #include "rasops_glue.h"
 
@@ -400,8 +400,8 @@
 #ifdef RASOPS_CLIPPING
        flg &= 255;
 #endif
-       fg = (fg ? 1 : 0);
-       bg = (bg ? 1 : 0);
+       fg = (fg == WSCOL_BLACK ? 0 : 1);
+       bg = (bg == WSCOL_BLACK ? 0 : 1);
        
        if (flg & WSATTR_BLINK)
                return (EINVAL);



Home | Main Index | Thread Index | Old Index