Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/wscons provide a default attribute



details:   https://anonhg.NetBSD.org/src/rev/81b4ee0dee1d
branches:  trunk
changeset: 815771:81b4ee0dee1d
user:      macallan <macallan%NetBSD.org@localhost>
date:      Thu Jun 02 21:17:14 2016 +0000

description:
provide a default attribute

diffstat:

 sys/dev/wscons/wsdisplay_vconsvar.h |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r 53d0fab9f9ac -r 81b4ee0dee1d sys/dev/wscons/wsdisplay_vconsvar.h
--- a/sys/dev/wscons/wsdisplay_vconsvar.h       Thu Jun 02 19:55:52 2016 +0000
+++ b/sys/dev/wscons/wsdisplay_vconsvar.h       Thu Jun 02 21:17:14 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wsdisplay_vconsvar.h,v 1.23 2014/03/18 18:20:42 riastradh Exp $ */
+/*     $NetBSD: wsdisplay_vconsvar.h,v 1.24 2016/06/02 21:17:14 macallan Exp $ */
 
 /*-
  * Copyright (c) 2005, 2006 Michael Lorenz
@@ -90,6 +90,8 @@
 #define SCREEN_DISABLE_DRAWING(scr) ((scr)->scr_flags |= VCONS_DONT_DRAW)
 #define SCREEN_ENABLE_DRAWING(scr) ((scr)->scr_flags &= ~VCONS_DONT_DRAW)
 
+#define DEFATTR ((WS_DEFAULT_FG << 24) || (WS_DEFAULT_BG << 16))
+
 struct vcons_data {
        /* usually the drivers softc */
        void *cookie;



Home | Main Index | Thread Index | Old Index