summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authornisimura <nisimura@NetBSD.org>2000-11-21 07:42:02 +0000
committernisimura <nisimura@NetBSD.org>2000-11-21 07:42:02 +0000
commitce10334de960d4e6a35ff32627e0ce8de481480b (patch)
treed0cd6cb5141beacbc544dd4df56f1e895345b64d /sys/dev
parent7af6378fca800c624703375255cfcfd643c66083 (diff)
Fix errors in color lookup table initialization. Glyph is rendered
in visible color now.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/tc/cfb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/tc/cfb.c b/sys/dev/tc/cfb.c
index 0696d3434ad..5ce79f8ea57 100644
--- a/sys/dev/tc/cfb.c
+++ b/sys/dev/tc/cfb.c
@@ -1,4 +1,4 @@
-/* $NetBSD: cfb.c,v 1.24 2000/10/27 07:24:04 nisimura Exp $ */
+/* $NetBSD: cfb.c,v 1.25 2000/11/21 07:42:02 nisimura Exp $ */
/*
* Copyright (c) 1998, 1999 Tohru Nishimura. All rights reserved.
@@ -32,7 +32,7 @@
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
-__KERNEL_RCSID(0, "$NetBSD: cfb.c,v 1.24 2000/10/27 07:24:04 nisimura Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cfb.c,v 1.25 2000/11/21 07:42:02 nisimura Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -353,7 +353,7 @@ cfbattach(parent, self, aux)
cm = &sc->sc_cmap;
p = rasops_cmap;
- for (index = 0; index < CMAP_SIZE; index++) {
+ for (index = 0; index < CMAP_SIZE; index++, p += 3) {
cm->r[index] = p[0];
cm->g[index] = p[1];
cm->b[index] = p[2];
@@ -638,7 +638,7 @@ cfbinit(dc)
/* build sane colormap */
SELECT(vdac, 0);
p = rasops_cmap;
- for (i = 0; i < CMAP_SIZE; i++) {
+ for (i = 0; i < CMAP_SIZE; i++, p += 3) {
REG(vdac, bt_cmap) = p[0]; tc_wmb();
REG(vdac, bt_cmap) = p[1]; tc_wmb();
REG(vdac, bt_cmap) = p[2]; tc_wmb();