Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/rasops fix what has to be a thinko - I doubt there's...



details:   https://anonhg.NetBSD.org/src/rev/d057dd61505c
branches:  trunk
changeset: 778864:d057dd61505c
user:      macallan <macallan%NetBSD.org@localhost>
date:      Tue Apr 17 12:06:25 2012 +0000

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

diffstat:

 sys/dev/rasops/rasops15.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (32 lines):

diff -r 2b758a97d92c -r d057dd61505c sys/dev/rasops/rasops15.c
--- a/sys/dev/rasops/rasops15.c Tue Apr 17 11:00:43 2012 +0000
+++ b/sys/dev/rasops/rasops15.c Tue Apr 17 12:06:25 2012 +0000
@@ -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 @@
 
        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;
        }
 }
 



Home | Main Index | Thread Index | Old Index