Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/hpc Use symbolic WSCOL_* colour names instead of mag...
details: https://anonhg.NetBSD.org/src/rev/1a13b243be03
branches: trunk
changeset: 526794:1a13b243be03
user: uwe <uwe%NetBSD.org@localhost>
date: Fri May 10 22:01:13 2002 +0000
description:
Use symbolic WSCOL_* colour names instead of magic numbers.
diffstat:
sys/dev/hpc/hpcfb.c | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diffs (44 lines):
diff -r 6cb7abc44ba3 -r 1a13b243be03 sys/dev/hpc/hpcfb.c
--- a/sys/dev/hpc/hpcfb.c Fri May 10 22:01:06 2002 +0000
+++ b/sys/dev/hpc/hpcfb.c Fri May 10 22:01:13 2002 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: hpcfb.c,v 1.19 2002/04/13 09:29:55 takemura Exp $ */
+/* $NetBSD: hpcfb.c,v 1.20 2002/05/10 22:01:13 uwe Exp $ */
/*-
* Copyright (c) 1999
@@ -43,13 +43,13 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hpcfb.c,v 1.19 2002/04/13 09:29:55 takemura Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hpcfb.c,v 1.20 2002/05/10 22:01:13 uwe Exp $");
#define FBDEBUG
static const char _copyright[] __attribute__ ((unused)) =
"Copyright (c) 1999 Shin Takemura. All rights reserved.";
static const char _rcsid[] __attribute__ ((unused)) =
- "$NetBSD: hpcfb.c,v 1.19 2002/04/13 09:29:55 takemura Exp $";
+ "$NetBSD: hpcfb.c,v 1.20 2002/05/10 22:01:13 uwe Exp $";
#include <sys/param.h>
#include <sys/systm.h>
@@ -430,7 +430,8 @@
hpcfb_console_wsscreen.nrows = hpcfb_console_dc.dc_rows;
hpcfb_console_wsscreen.ncols = hpcfb_console_dc.dc_cols;
hpcfb_console_wsscreen.capabilities = hpcfb_console_dc.dc_rinfo.ri_caps;
- hpcfb_alloc_attr(&hpcfb_console_dc, 7, 0, 0, &defattr);
+ hpcfb_alloc_attr(&hpcfb_console_dc,
+ WSCOL_WHITE, WSCOL_BLACK, 0, &defattr);
wsdisplay_cnattach(&hpcfb_console_wsscreen, &hpcfb_console_dc,
0, 0, defattr);
hpcfbconsole = 1;
@@ -755,7 +756,7 @@
*curxp = 0;
*curyp = 0;
*cookiep = dc;
- hpcfb_alloc_attr(*cookiep, 7, 0, 0, attrp);
+ hpcfb_alloc_attr(*cookiep, WSCOL_WHITE, WSCOL_BLACK, 0, attrp);
DPRINTF(("%s(%d): hpcfb_alloc_screen(): 0x%p\n",
__FILE__, __LINE__, dc));
Home |
Main Index |
Thread Index |
Old Index