Module Name:    src
Committed By:   jakllsch
Date:           Wed Jan 25 15:51:07 UTC 2017

Modified Files:
        src/sys/dev/ic: igsfb.c

Log Message:
igsfb(4): use WSDISPLAY_BORDER_COLOR for overscan color


To generate a diff of this commit:
cvs rdiff -u -r1.53 -r1.54 src/sys/dev/ic/igsfb.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/ic/igsfb.c
diff -u src/sys/dev/ic/igsfb.c:1.53 src/sys/dev/ic/igsfb.c:1.54
--- src/sys/dev/ic/igsfb.c:1.53	Thu Jul 14 04:00:45 2016
+++ src/sys/dev/ic/igsfb.c	Wed Jan 25 15:51:07 2017
@@ -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 @@ igsfb_init_cmap(struct igsfb_devconfig *
 	/* 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]);
 }
 
 

Reply via email to