Module Name:    src
Committed By:   macallan
Date:           Tue Apr 17 12:06:25 UTC 2012

Modified Files:
        src/sys/dev/rasops: rasops15.c

Log Message:
fix what has to be a thinko - I doubt there's much hardware out there that
uses BGR in 15/16 bit colour


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/dev/rasops/rasops15.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/rasops/rasops15.c
diff -u src/sys/dev/rasops/rasops15.c:1.19 src/sys/dev/rasops/rasops15.c:1.20
--- src/sys/dev/rasops/rasops15.c:1.19	Tue May  4 04:57:34 2010
+++ src/sys/dev/rasops/rasops15.c	Tue Apr 17 12:06:25 2012
@@ -1,4 +1,4 @@
-/* 	$NetBSD: rasops15.c,v 1.19 2010/05/04 04:57:34 macallan Exp $	*/
+/* 	$NetBSD: rasops15.c,v 1.20 2012/04/17 12:06:25 macallan Exp $	*/
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rasops15.c,v 1.19 2010/05/04 04:57:34 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rasops15.c,v 1.20 2012/04/17 12:06:25 macallan Exp $");
 
 #include "opt_rasops.h"
 
@@ -99,11 +99,11 @@ rasops15_init(struct rasops_info *ri)
 
 	if (ri->ri_rnum == 0) {
 		ri->ri_rnum = 5;
-		ri->ri_rpos = 0;
+		ri->ri_rpos = 10 + (ri->ri_depth == 16);
 		ri->ri_gnum = 5 + (ri->ri_depth == 16);
 		ri->ri_gpos = 5;
 		ri->ri_bnum = 5;
-		ri->ri_bpos = 10 + (ri->ri_depth == 16);
+		ri->ri_bpos = 0;
 	}
 }
 

Reply via email to