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 4-bpp stamp for big endian.



details:   https://anonhg.NetBSD.org/src/rev/e2d2bf891b79
branches:  trunk
changeset: 457989:e2d2bf891b79
user:      rin <rin%NetBSD.org@localhost>
date:      Fri Jul 26 06:37:15 2019 +0000

description:
Fix 4-bpp stamp for big endian.

diffstat:

 sys/dev/rasops/rasops4.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (33 lines):

diff -r 56a5ba721f0d -r e2d2bf891b79 sys/dev/rasops/rasops4.c
--- a/sys/dev/rasops/rasops4.c  Fri Jul 26 05:53:30 2019 +0000
+++ b/sys/dev/rasops/rasops4.c  Fri Jul 26 06:37:15 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rasops4.c,v 1.17 2019/07/25 03:02:44 rin Exp $ */
+/*     $NetBSD: rasops4.c,v 1.18 2019/07/26 06:37:15 rin Exp $ */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rasops4.c,v 1.17 2019/07/25 03:02:44 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rasops4.c,v 1.18 2019/07/26 06:37:15 rin Exp $");
 
 #include "opt_rasops.h"
 
@@ -242,10 +242,10 @@
                        stamp[i] |= (i & 8 ? fg : bg) << 0;
                } else {
                        /* big endian */
-                       stamp[i] =  (i & 1 ? fg : bg) << 8;
-                       stamp[i] |= (i & 2 ? fg : bg) << 12;
-                       stamp[i] |= (i & 4 ? fg : bg) << 0;
-                       stamp[i] |= (i & 8 ? fg : bg) << 4;
+                       stamp[i] =  (i & 1 ? fg : bg) << 0;
+                       stamp[i] |= (i & 2 ? fg : bg) << 4;
+                       stamp[i] |= (i & 4 ? fg : bg) << 8;
+                       stamp[i] |= (i & 8 ? fg : bg) << 12;
                }
        }
 }



Home | Main Index | Thread Index | Old Index