Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/rasops Honor RI_BSWAP.



details:   https://anonhg.NetBSD.org/src/rev/899c7439ff44
branches:  trunk
changeset: 521471:899c7439ff44
user:      uwe <uwe%NetBSD.org@localhost>
date:      Thu Jan 31 11:18:07 2002 +0000

description:
Honor RI_BSWAP.

diffstat:

 sys/dev/rasops/rasops8.c |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r 1eadc4721322 -r 899c7439ff44 sys/dev/rasops/rasops8.c
--- a/sys/dev/rasops/rasops8.c  Thu Jan 31 10:37:41 2002 +0000
+++ b/sys/dev/rasops/rasops8.c  Thu Jan 31 11:18:07 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rasops8.c,v 1.13 2001/11/15 09:48:15 lukem Exp $       */
+/*     $NetBSD: rasops8.c,v 1.14 2002/01/31 11:18:07 uwe Exp $ */
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -37,13 +37,14 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rasops8.c,v 1.13 2001/11/15 09:48:15 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rasops8.c,v 1.14 2002/01/31 11:18:07 uwe Exp $");
 
 #include "opt_rasops.h"
 
 #include <sys/param.h>
 #include <sys/systm.h>
 #include <sys/time.h>
+#include <sys/bswap.h>
 
 #include <dev/wscons/wsdisplayvar.h>
 #include <dev/wscons/wsconsio.h>
@@ -199,6 +200,8 @@
                stamp[i] |= ((i & 4 ? fg : bg) << 16);
                stamp[i] |= ((i & 8 ? fg : bg) << 24);
 #endif
+               if ((ri->ri_flg & RI_BSWAP) != 0)
+                       stamp[i] = bswap32(stamp[i]);
        }
 }
 



Home | Main Index | Thread Index | Old Index