Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/sbus actually put the colour space ID where it belon...



details:   https://anonhg.NetBSD.org/src/rev/7cb43ba1fa77
branches:  trunk
changeset: 330399:7cb43ba1fa77
user:      macallan <macallan%NetBSD.org@localhost>
date:      Mon Jul 07 15:22:07 2014 +0000

description:
actually put the colour space ID where it belongs in tcx_clearscreen()

diffstat:

 sys/dev/sbus/tcx.c |  9 ++++-----
 1 files changed, 4 insertions(+), 5 deletions(-)

diffs (30 lines):

diff -r 8f0be5400eb8 -r 7cb43ba1fa77 sys/dev/sbus/tcx.c
--- a/sys/dev/sbus/tcx.c        Mon Jul 07 15:13:21 2014 +0000
+++ b/sys/dev/sbus/tcx.c        Mon Jul 07 15:22:07 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tcx.c,v 1.52 2014/06/24 05:04:14 macallan Exp $ */
+/*     $NetBSD: tcx.c,v 1.53 2014/07/07 15:22:07 macallan Exp $ */
 
 /*
  *  Copyright (c) 1996, 1998, 2009 The NetBSD Foundation, Inc.
@@ -38,7 +38,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tcx.c,v 1.52 2014/06/24 05:04:14 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tcx.c,v 1.53 2014/07/07 15:22:07 macallan Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -903,9 +903,8 @@
        uint64_t spc64;
        int i, len;
 
-       bg |=  ((uint64_t)sc->sc_bg << 32);
-       spc64 = (spc & 3) << 24;
-       bg |= spc64;
+       spc64 = ((spc & 3) << 24) | sc->sc_bg;
+       bg |= (spc64 << 32);
 
        len = sc->sc_fb.fb_type.fb_width * sc->sc_fb.fb_type.fb_height;
        for (i = 0; i < len; i += 32)



Home | Main Index | Thread Index | Old Index