Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic igsfb(4): use WSDISPLAY_BORDER_COLOR for overscan...
details: https://anonhg.NetBSD.org/src/rev/7d4ffba2d50b
branches: trunk
changeset: 350885:7d4ffba2d50b
user: jakllsch <jakllsch%NetBSD.org@localhost>
date: Wed Jan 25 15:51:07 2017 +0000
description:
igsfb(4): use WSDISPLAY_BORDER_COLOR for overscan color
diffstat:
sys/dev/ic/igsfb.c | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
diffs (34 lines):
diff -r 295b4f29e182 -r 7d4ffba2d50b sys/dev/ic/igsfb.c
--- a/sys/dev/ic/igsfb.c Wed Jan 25 15:40:31 2017 +0000
+++ b/sys/dev/ic/igsfb.c Wed Jan 25 15:51:07 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: igsfb.c,v 1.53 2016/07/14 04:00:45 msaitoh Exp $ */
+/* $NetBSD: igsfb.c,v 1.54 2017/01/25 15:51:07 jakllsch Exp $ */
/*
* Copyright (c) 2002, 2003 Valeriy E. Ushakov
@@ -31,7 +31,7 @@
* Integraphics Systems IGA 168x and CyberPro series.
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: igsfb.c,v 1.53 2016/07/14 04:00:45 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: igsfb.c,v 1.54 2017/01/25 15:51:07 jakllsch Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -389,10 +389,11 @@
/* propagate to the device */
igsfb_update_cmap(dc, 0, IGS_CMAP_SIZE);
- /* set overscan color (XXX: use defattr's background?) */
- igs_ext_write(iot, ioh, IGS_EXT_OVERSCAN_RED, 0);
- igs_ext_write(iot, ioh, IGS_EXT_OVERSCAN_GREEN, 0);
- igs_ext_write(iot, ioh, IGS_EXT_OVERSCAN_BLUE, 0);
+ /* set overscan color */
+ p = &rasops_cmap[WSDISPLAY_BORDER_COLOR * 3];
+ igs_ext_write(iot, ioh, IGS_EXT_OVERSCAN_RED, p[0]);
+ igs_ext_write(iot, ioh, IGS_EXT_OVERSCAN_GREEN, p[1]);
+ igs_ext_write(iot, ioh, IGS_EXT_OVERSCAN_BLUE, p[2]);
}
- Prev by Date:
[src/trunk]: src/tests/kernel Add io_read_auxv1 in t_ptrace_wait{, 3, 4, 6, id, pid}
- Next by Date:
[src/trunk]: src/lib/libc/sys Make the PIOD_READ_AUXV operation more clear
- Previous by Thread:
[src/trunk]: src/tests/kernel Add io_read_auxv1 in t_ptrace_wait{, 3, 4, 6, id, pid}
- Next by Thread:
[src/trunk]: src/lib/libc/sys Make the PIOD_READ_AUXV operation more clear
- Indexes:
Home |
Main Index |
Thread Index |
Old Index