Module Name:    src
Committed By:   rin
Date:           Fri Aug  9 17:22:02 UTC 2019

Modified Files:
        src/sys/dev/wsfb: genfb.c

Log Message:
Fix bug introduced in rev. 1.69:
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/dev/wsfb/genfb.c#rev1.69

is_bgr should be initialized to false. Otherwise, color becomes strange
for depths 24 and 32 unless backend explicitly set "is_bgr" property.


To generate a diff of this commit:
cvs rdiff -u -r1.69 -r1.70 src/sys/dev/wsfb/genfb.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/wsfb/genfb.c
diff -u src/sys/dev/wsfb/genfb.c:1.69 src/sys/dev/wsfb/genfb.c:1.70
--- src/sys/dev/wsfb/genfb.c:1.69	Wed Aug  7 13:23:12 2019
+++ src/sys/dev/wsfb/genfb.c	Fri Aug  9 17:22:02 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: genfb.c,v 1.69 2019/08/07 13:23:12 rin Exp $ */
+/*	$NetBSD: genfb.c,v 1.70 2019/08/09 17:22:02 rin Exp $ */
 
 /*-
  * Copyright (c) 2007 Michael Lorenz
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: genfb.c,v 1.69 2019/08/07 13:23:12 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: genfb.c,v 1.70 2019/08/09 17:22:02 rin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -569,6 +569,7 @@ genfb_init_screen(void *cookie, struct v
 	case 24:
 		ri->ri_flg |= RI_ENABLE_ALPHA;
 
+		is_bgr = false;
 		prop_dictionary_get_bool(device_properties(sc->sc_dev),
 		    "is_bgr", &is_bgr);
 		if (is_bgr) {

Reply via email to