Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/tc Fix errors in color lookup table initialization. ...
details: https://anonhg.NetBSD.org/src/rev/fc71894f1340
branches: trunk
changeset: 499496:fc71894f1340
user: nisimura <nisimura%NetBSD.org@localhost>
date: Tue Nov 21 07:42:02 2000 +0000
description:
Fix errors in color lookup table initialization. Glyph is rendered
in visible color now.
diffstat:
sys/dev/tc/cfb.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r c38ea01cdbc4 -r fc71894f1340 sys/dev/tc/cfb.c
--- a/sys/dev/tc/cfb.c Tue Nov 21 06:30:05 2000 +0000
+++ b/sys/dev/tc/cfb.c Tue Nov 21 07:42:02 2000 +0000
@@ -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 @@
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 @@
/* 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();
Home |
Main Index |
Thread Index |
Old Index